PROJECT SURVEY: Gender identity change in civil documents

Author

Alba, Mencía, Julia, Laura

Published

March 13, 2025

Join datasets

Cleaning the first dataset

We open the first libraries:

library(haven)
library(dplyr)

Adjuntando el paquete: 'dplyr'
The following objects are masked from 'package:stats':

    filter, lag
The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ forcats   1.0.0     ✔ readr     2.1.5
✔ ggplot2   3.5.1     ✔ stringr   1.5.1
✔ lubridate 1.9.3     ✔ tibble    3.2.1
✔ purrr     1.0.2     ✔ tidyr     1.3.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library (tidyr)

We load the data of the Special Eurobarometer (2019) which contains information on public opinion in European countries regarding various issues, specially LGBT topics.

original_data <- read_dta("ZA7575.dta")

head(original_data)
# A tibble: 6 × 609
  studyno1     studyno2   doi   version edition survey    caseid uniqid serialid
  <dbl+lbl>    <dbl+lbl>  <chr> <chr>   <dbl+l> <dbl+lbl>  <dbl>  <dbl>    <dbl>
1 7575 [GESIS… 7575 [GES… doi:… 1.0.0 … 1 [Arc… 914 [Eur…     47 1.00e7        1
2 7575 [GESIS… 7575 [GES… doi:… 1.0.0 … 1 [Arc… 914 [Eur…     53 1.00e7        2
3 7575 [GESIS… 7575 [GES… doi:… 1.0.0 … 1 [Arc… 914 [Eur…     55 1.00e7        3
4 7575 [GESIS… 7575 [GES… doi:… 1.0.0 … 1 [Arc… 914 [Eur…     56 1.00e7        4
5 7575 [GESIS… 7575 [GES… doi:… 1.0.0 … 1 [Arc… 914 [Eur…     62 1.00e7        5
6 7575 [GESIS… 7575 [GES… doi:… 1.0.0 … 1 [Arc… 914 [Eur…     67 1.00e7        6
# ℹ 600 more variables: tnscntry <dbl+lbl>, country <dbl+lbl>, isocntry <chr>,
#   d11 <dbl+lbl>, d11r1 <dbl+lbl>, d11r2 <dbl+lbl>, d11r3 <dbl+lbl>,
#   gen1 <dbl+lbl>, gen2 <dbl+lbl>, gen3 <dbl+lbl>, gen4 <dbl+lbl>,
#   gen5 <dbl+lbl>, gen6 <dbl+lbl>, q1_1 <dbl+lbl>, q1_2 <dbl+lbl>,
#   q1_3 <dbl+lbl>, q1_4 <dbl+lbl>, q1_5 <dbl+lbl>, q1_6 <dbl+lbl>,
#   q1_7 <dbl+lbl>, q1_8 <dbl+lbl>, q1_9 <dbl+lbl>, q1_10 <dbl+lbl>,
#   q1_11 <dbl+lbl>, q1_12 <dbl+lbl>, q1_13 <dbl+lbl>, q1_14 <dbl+lbl>, …

We chose the relevant variables according to the literature: the sociodemographic ones, and those related to LGBT issues.

variables_chosen <- c("isocntry",
  "country", "d8", "d10", "d11", "d25",  
  "d60", "sd1_4", "sd1_7", "sd1_8", "sd2_5", "sd3", "qc1_4", "qc2_4", "qc2_6", "qc2_7", "qc4_7", "qc4_8", "qc4_9", "qc4_10", "qc6_1", "qc6_2", "qc6_10", "qc6_11", "qc7", "qc9_4", "qc9_5", "qc9_10", "qc9_11", "qc11_6", "qc12_10", "qc12_11", "qc12_12", "qc13_10", "qc13_11", "qc13_12", 
  "qc15_1", "qc15_2", "qc15_3", "qc17_3", "qc17_4", "qc17_5", "qc18_1", "qc18_2", "qc18_3", "qc19"
)
first_clean_data <- original_data |> select(all_of(variables_chosen))

glimpse(first_clean_data)
Rows: 27,438
Columns: 46
$ isocntry <chr> "BE", "BE", "BE", "BE", "BE", "BE", "BE", "BE", "BE", "BE", "…
$ country  <dbl+lbl> 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, …
$ d8       <dbl+lbl> 20, 19, 19, 25, 23, 21, 22, 20, 18, 25, 17, 23, 98, 97, 2…
$ d10      <dbl+lbl> 1, 2, 2, 1, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 1, 1, …
$ d11      <dbl+lbl> 51, 62, 38, 29, 63, 41, 48, 88, 44, 45, 54, 34, 23, 49, 4…
$ d25      <dbl+lbl> 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, …
$ d60      <dbl+lbl> 2, 3, 2, 3, 3, 3, 2, 2, 3, 3, 2, 3, 2, 1, 1, 3, 1, 2, 2, …
$ sd1_4    <dbl+lbl> 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, …
$ sd1_7    <dbl+lbl> 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 1, 2, 2, 1, 1, 2, …
$ sd1_8    <dbl+lbl> 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, …
$ sd2_5    <dbl+lbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …
$ sd3      <dbl+lbl>  1,  1, 12, 12,  1, 13, 13,  1,  1,  1,  8,  4,  3,  7, 1…
$ qc1_4    <dbl+lbl> 2, 3, 2, 2, 2, 2, 3, 3, 4, 3, 2, 3, 2, 2, 2, 3, 2, 2, 2, …
$ qc2_4    <dbl+lbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …
$ qc2_6    <dbl+lbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …
$ qc2_7    <dbl+lbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …
$ qc4_7    <dbl+lbl> 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, …
$ qc4_8    <dbl+lbl> 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, …
$ qc4_9    <dbl+lbl> 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, …
$ qc4_10   <dbl+lbl> 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, …
$ qc6_1    <dbl+lbl> 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,  9,  8, 10, 10,  …
$ qc6_2    <dbl+lbl>  8,  7,  4, 10,  9,  5,  3,  8,  8,  9,  9,  7,  8,  7,  …
$ qc6_10   <dbl+lbl>  7,  1,  1, 10,  1,  5,  5,  1,  9,  2,  9,  7,  8,  7,  …
$ qc6_11   <dbl+lbl>  7,  2,  4, 10,  1,  5,  4,  1, 10,  5,  9,  8,  8,  7,  …
$ qc7      <dbl+lbl> 7, 3, 6, 9, 6, 4, 4, 7, 8, 8, 6, 5, 8, 4, 6, 6, 3, 3, 3, …
$ qc9_4    <dbl+lbl> 1, 6, 2, 1, 6, 1, 1, 6, 6, 2, 6, 2, 6, 6, 6, 2, 6, 2, 3, …
$ qc9_5    <dbl+lbl> 3, 6, 3, 1, 6, 1, 2, 6, 6, 1, 6, 2, 6, 6, 6, 2, 6, 2, 3, …
$ qc9_10   <dbl+lbl> 4, 6, 4, 1, 6, 4, 4, 6, 6, 3, 6, 2, 6, 6, 6, 2, 6, 2, 3, …
$ qc9_11   <dbl+lbl> 4, 6, 4, 1, 6, 4, 3, 6, 6, 3, 6, 2, 6, 6, 6, 2, 6, 3, 3, …
$ qc11_6   <dbl+lbl> 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 2, 2, 1, …
$ qc12_10  <dbl+lbl>  6,  4,  5, 10, 10, 10,  3,  4, 10, 10,  7,  8,  7,  6,  …
$ qc12_11  <dbl+lbl> 10,  3,  5, 10,  7,  2,  2,  1, 10,  7,  7,  8,  8,  5,  …
$ qc12_12  <dbl+lbl>  5,  3,  5, 10,  7,  6,  2,  1,  8,  7,  7,  8,  8,  7,  …
$ qc13_10  <dbl+lbl>  2,  1,  4, 10,  7,  1,  1,  1, 10,  3,  4,  3,  7,  5,  …
$ qc13_11  <dbl+lbl>  1,  2,  1, 10,  1,  1,  1,  1,  5,  3,  4,  6,  6,  7,  …
$ qc13_12  <dbl+lbl>  1,  1,  1, 10,  1,  1,  1,  1,  5,  3,  5,  5,  6,  5,  …
$ qc15_1   <dbl+lbl> 2, 2, 1, 1, 2, 1, 1, 2, 3, 1, 2, 3, 2, 2, 3, 2, 2, 2, 1, …
$ qc15_2   <dbl+lbl> 2, 2, 2, 1, 2, 1, 2, 2, 1, 1, 2, 3, 2, 2, 3, 2, 2, 2, 1, …
$ qc15_3   <dbl+lbl> 2, 3, 1, 2, 4, 2, 1, 3, 1, 1, 2, 3, 2, 1, 3, 2, 2, 2, 1, …
$ qc17_3   <dbl+lbl> 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 3, 2, 2, 3, 2, 2, 2, 2, …
$ qc17_4   <dbl+lbl> 2, 3, 3, 2, 1, 3, 1, 3, 1, 1, 2, 3, 2, 2, 3, 2, 2, 2, 3, …
$ qc17_5   <dbl+lbl> 2, 3, 3, 2, 1, 4, 1, 3, 1, 1, 2, 3, 2, 2, 3, 2, 2, 2, 3, …
$ qc18_1   <dbl+lbl>  9, 10, 10, 10, 10, 10, 10,  9, 10, 10,  6,  6,  7,  3, 1…
$ qc18_2   <dbl+lbl>  5,  5,  5, 10, 10,  2,  2,  1, 10, 10,  6,  6,  7,  5,  …
$ qc18_3   <dbl+lbl>  5,  8,  9, 10, 10,  8, 10,  6,  8, 10,  6,  6,  7,  5,  …
$ qc19     <dbl+lbl> 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, …

Now we check missing values, NAs, DK, DA, etc:

# Identify the missing values in each variable

sapply(first_clean_data, unique)
$isocntry
 [1] "BE"   "DK"   "GR"   "ES"   "FI"   "FR"   "IE"   "IT"   "LU"   "NL"  
[11] "AT"   "PT"   "SE"   "DE-W" "DE-E" "GB"   "BG"   "CY"   "CZ"   "EE"  
[21] "HU"   "LV"   "LT"   "MT"   "PL"   "RO"   "SK"   "SI"   "HR"  

$country
<labelled<double>[29]>: COUNTRY/SAMPLE ID (SERIES STANDARD)
 [1]  2  7 11 12 16  1  8  5  6  3 18 13 17  4 14  9 29 19 20 21 22 23 24 25 26
[26] 30 27 28 32

Labels:
 value                                        label
     1                                  FR - France
     2                                 BE - Belgium
     3                         NL - The Netherlands
     4                        DE-W - Germany - West
     5                                   IT - Italy
     6                              LU - Luxembourg
     7                                 DK - Denmark
     8                                 IE - Ireland
     9                      GB-UKM - United Kingdom
    10 GB-NIR Northern Ireland (NO SEPARATE SAMPLE)
    11                                  GR - Greece
    12                                    ES -Spain
    13                                PT - Portugal
    14                            DE-E Germany East
    15                                            -
    16                                 FI - Finland
    17                                  SE - Sweden
    18                                 AT - Austria
    19                       CY - Cyprus (Republic)
    20                          CZ - Czech Republic
    21                                 EE - Estonia
    22                                 HU - Hungary
    23                                  LV - Latvia
    24                               LT - Lithuania
    25                                   MT - Malta
    26                                  PL - Poland
    27                                SK - Slovakia
    28                                SI - Slovenia
    29                                BG - Bulgaria
    30                                 RO - Romania
    31                   TR - Turkey (NOT INCLUDED)
    32                                 HR - Croatia
    33           CY-TCC - Cyprus TCC (NOT INCLUDED)
    34          MK - Makedonia/FYROM (NOT INCLUDED)
    35               ME - Montenegro (NOT INCLUDED)
    36                   RS - Serbia (NOT INCLUDED)
    41                   NO - Norway (NOT INCLUDED)
    42              CH - Switzerland (NOT INCLUDED)
    43                  IS - Iceland (NOT INCLUDED)
    44            LI - Liechtenstein (NOT INCLUDED)

$d8
<labelled<double>[85]>: AGE EDUCATION
 [1] 20 19 25 23 21 22 18 17 98 97 26 99 16  7 24 28 47 14 15 13 65 12 67 27 45
[26] 29 10  2 33 32 41 82 75 40 72 30 42 58 43 35 39 38 37 55 31 50 36 70 48 54
[51] 34 44 49 52  3  9 11  8 85 74 62  0  6 51 56 63 68 60 64 57 69 90  5  4 80
[76] 46 66 87 61 78 53 59 76 71 77

Labels:
 value                  label
     0                Refusal
     2                2 years
    90               90 years
    97 No full-time education
    98         Still studying
    99                     DK

$d10
<labelled<double>[2]>: GENDER
[1] 1 2

Labels:
 value label
     1   Man
     2 Woman

$d11
<labelled<double>[83]>: AGE EXACT
 [1] 51 62 38 29 63 41 48 88 44 45 54 34 23 49 46 25 33 27 61 57 58 50 60 28 32
[26] 17 20 19 55 42 30 35 47 37 40 39 43 67 89 36 56 72 52 71 24 18 76 68 73 77
[51] 65 15 64 70 21 69 75 22 80 66 85 53 81 84 83 79 86 78 74 16 31 59 82 26 91
[76] 90 92 87 94 93 96 98 95

Labels:
 value    label
    15 15 years
    98 98 years

$d25
<labelled<double>[4]>: TYPE OF COMMUNITY
[1] 3 1 2 8

Labels:
 value                      label
     1      Rural area or village
     2 Small or middle sized town
     3                 Large town
     8                         DK

$d60
<labelled<double>[4]>: DIFFICULTIES PAYING BILLS - LAST YEAR
[1] 2 3 1 7

Labels:
 value              label
     1   Most of the time
     2  From time to time
     3 Almost never/never
     7   Refusal (SPONT.)

$sd1_4
<labelled<double>[4]>: CONTACT: GAY LESBIAN OR BISEXUAL
[1] 2 1 4 3

Labels:
 value                 label
     1                   Yes
     2                    No
     3 Refusal (SPONTANEOUS)
     4                    DK

$sd1_7
<labelled<double>[4]>: CONTACT: TRANSGENDER/TRANSSEXUAL
[1] 2 1 4 3

Labels:
 value                 label
     1                   Yes
     2                    No
     3 Refusal (SPONTANEOUS)
     4                    DK

$sd1_8
<labelled<double>[4]>: CONTACT: INTERSEX
[1] 2 1 4 3

Labels:
 value                 label
     1                   Yes
     2                    No
     3 Refusal (SPONTANEOUS)
     4                    DK

$sd2_5
<labelled<double>[2]>: OUTGROUP MEMBER: SEXUAL MINORITY
[1] 0 1

Labels:
 value
     0
     1
                                                                          label
                                                                  Not mentioned
 A sexual minority (like being gay, lesbian, bisexual, transgender or intersex)

$sd3
<labelled<double>[16]>: RELIGION - DENOMINATION
 [1]  1 12 13  8  4  3  7  2  6 14  5 10 16 15 11  9

Labels:
 value                    label
     1                 Catholic
     2       Orthodox Christian
     3               Protestant
     4          Other Christian
     5                   Jewish
     6            Muslim - Shia
     7           Muslim - Sunni
     8             Other Muslim
     9                     Sikh
    10                 Buddhist
    11                    Hindu
    12                  Atheist
    13 Non believer or agnostic
    14                    Other
    15    Refusal (SPONTANEOUS)
    16                       DK

$qc1_4
<labelled<double>[6]>: DISCRIMINATION IN CTRY: SEXUAL ORIENTATION
[1] 2 3 4 1 5 6

Labels:
 value                      label
     1            Very widespread
     2          Fairly widespread
     3                Fairly rare
     4                  Very rare
     5 Non-existent (SPONTANEOUS)
     6                         DK

$qc2_4
<labelled<double>[2]>: EXPERIENCED DISCRIMINATION: SEXUAL ORIENTATION
[1] 0 1

Labels:
 value                                               label
     0                                       Not mentioned
     1 Sexual orientation (being gay, lesbian or bisexual)

$qc2_6
<labelled<double>[2]>: EXPERIENCED DISCRIMINATION: BEING TRANSGENDER
[1] 0 1

Labels:
 value             label
     0     Not mentioned
     1 Being transgender

$qc2_7
<labelled<double>[2]>: EXPERIENCED DISCRIMINATION: BEING INTERSEX
[1] 0 1

Labels:
 value          label
     0  Not mentioned
     1 Being intersex

$qc4_7
<labelled<double>[2]>: JOB CANDIDATE DISADVANTAGE: GENDER
[1] 0 1

Labels:
 value                                        label
     0                                Not mentioned
     1 The candidate's gender or sex (man or woman)

$qc4_8
<labelled<double>[2]>: JOB CANDIDATE DISADVANTAGE: GENDER IDENTITY
[1] 0 1

Labels:
 value                                               label
     0                                       Not mentioned
     1 The candidate's gender identity (being transgender)

$qc4_9
<labelled<double>[2]>: JOB CANDIDATE DISADVANTAGE: SEXUAL ORIENTATION
[1] 1 0

Labels:
 value                                                               label
     0                                                       Not mentioned
     1 The candidate’s sexual orientation (being gay, lesbian or bisexual)

$qc4_10
<labelled<double>[2]>: JOB CANDIDATE DISADVANTAGE: INTERSEX
[1] 0 1

Labels:
 value                                                label
     0                                        Not mentioned
     1 The candidate's sex characteristics (being intersex)

$qc6_1
<labelled<double>[12]>: ELECTED POLITICIAN: WOMAN
 [1] 10  9  8  5  7  6  2  3  4  1 11 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc6_2
<labelled<double>[12]>: ELECTED POLITICIAN: HOMOSEXUAL/BISEXUAL
 [1]  8  7  4 10  9  5  3  2  6  1 11 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc6_10
<labelled<double>[12]>: ELECTED POLITICIAN: TRANSGENDER
 [1]  7  1 10  5  9  2  8  4  6  3 11 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc6_11
<labelled<double>[12]>: ELECTED POLITICIAN: INTERSEX
 [1]  7  2  4 10  1  5  9  8  6  3 12 11

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc7
<labelled<double>[12]>: EFFORTS TO FIGHT DISCRIMINATION - RATING
 [1]  7  3  6  9  4  8  5  1  2 12 10 11

Labels:
 value                                          label
     1                         1 Not at all effective
     2                                              2
     3                                              3
     4                                              4
     5                                              5
     6                                              6
     7                                              7
     8                                              8
     9                                              9
    10                              10 Very effective
    11 No efforts made in (OUR COUNTRY) (SPONTANEOUS)
    12                                             DK

$qc9_4
<labelled<double>[7]>: DIVERSITY AT WORK PROMOTION: GENDER
[1] 1 6 2 3 4 5 7

Labels:
 value                                               label
     1                                     Yes, definitely
     2                                 Yes, to some extent
     3                                      No, not really
     4                                  No, definitely not
     5 There is no need to promote diversity (SPONTANEOUS)
     6                        Not applicable (SPONTANEOUS)
     7                                                  DK

$qc9_5
<labelled<double>[7]>: DIVERSITY AT WORK PROMOTION: SEXUAL ORIENTATION
[1] 3 6 1 2 4 5 7

Labels:
 value                                               label
     1                                     Yes, definitely
     2                                 Yes, to some extent
     3                                      No, not really
     4                                  No, definitely not
     5 There is no need to promote diversity (SPONTANEOUS)
     6                        Not applicable (SPONTANEOUS)
     7                                                  DK

$qc9_10
<labelled<double>[7]>: DIVERSITY AT WORK PROMOTION: BEING TRANSGENDER
[1] 4 6 1 3 2 5 7

Labels:
 value                                               label
     1                                     Yes, definitely
     2                                 Yes, to some extent
     3                                      No, not really
     4                                  No, definitely not
     5 There is no need to promote diversity (SPONTANEOUS)
     6                        Not applicable (SPONTANEOUS)
     7                                                  DK

$qc9_11
<labelled<double>[7]>: DIVERSITY AT WORK PROMOTION: BEING INTERSEX
[1] 4 6 1 3 2 7 5

Labels:
 value                                               label
     1                                     Yes, definitely
     2                                 Yes, to some extent
     3                                      No, not really
     4                                  No, definitely not
     5 There is no need to promote diversity (SPONTANEOUS)
     6                        Not applicable (SPONTANEOUS)
     7                                                  DK

$qc11_6
<labelled<double>[5]>: CENSUS INFO - SEXUAL ORIENTATION
[1] 1 3 2 4 5

Labels:
 value              label
     1  Totally in favour
     2 Somewhat in favour
     3   Somewhat opposed
     4    Totally opposed
     5                 DK

$qc12_10
<labelled<double>[13]>: COLLEAGUES AT WORK - HOMOSEXUAL/BISEXUAL PERSON
 [1]  6  4  5 10  3  7  8  1  2  9 13 11 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12  It depends (SPONTANEOUS)
    13                        DK

$qc12_11
<labelled<double>[13]>: COLLEAGUES AT WORK - TRANSGENDER PERSON
 [1] 10  3  5  7  2  1  8  6  9  4 13 11 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12  It depends (SPONTANEOUS)
    13                        DK

$qc12_12
<labelled<double>[13]>: COLLEAGUES AT WORK - INTERSEX PERSON
 [1]  5  3 10  7  6  2  1  8  9  4 13 11 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12  It depends (SPONTANEOUS)
    13                        DK

$qc13_10
<labelled<double>[13]>: LOVE RELATIONSHIP OF CHILD - PERSON W SAME SEX AS CHILD
 [1]  2  1  4 10  7  3  5  6  8  9 11 13 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12  It depends (SPONTANEOUS)
    13                        DK

$qc13_11
<labelled<double>[13]>: LOVE RELATIONSHIP OF CHILD - TRANSGENDER PERSON
 [1]  1  2 10  5  3  4  6  7  9  8 11 13 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12  It depends (SPONTANEOUS)
    13                        DK

$qc13_12
<labelled<double>[13]>: LOVE RELATIONSHIP OF CHILD - INTERSEX PERSON
 [1]  1 10  5  3  6  7  8  2  9  4 11 13 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12  It depends (SPONTANEOUS)
    13                        DK

$qc15_1
<labelled<double>[5]>: LGB STATEMENTS - SAME RIGHTS AS HETEROSEXUAL
[1] 2 1 3 4 5

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc15_2
<labelled<double>[5]>: LGB STATEMENTS - NOTHING WRONG WITH SAME SEX RELATIONSHIPS
[1] 2 1 3 4 5

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc15_3
<labelled<double>[5]>: LGB STATEMENTS - ALLOW SAME SEX MARRIAGE THROUGHOUT EUROPE
[1] 2 3 1 4 5

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc17_3
<labelled<double>[5]>: SCHOOL SHOULD INFORM ABOUT DIVERSITY - SEXUAL ORIENTATION
[1] 1 2 3 4 5

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc17_4
<labelled<double>[5]>: SCHOOL SHOULD INFORM ABOUT DIVERSITY - BEING TRANSGENDER
[1] 2 3 1 4 5

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc17_5
<labelled<double>[5]>: SCHOOL SHOULD INFORM ABOUT DIVERSITY - BEING INTERSEX
[1] 2 3 1 4 5

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc18_1
<labelled<double>[12]>: SHOWING AFFECTION IN PUBLIC - MAN AND WOMAN
 [1]  9 10  6  7  3  8  5  4  1  2 11 12

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc18_2
<labelled<double>[12]>: SHOWING AFFECTION IN PUBLIC - TWO MEN
 [1]  5 10  2  1  6  7  8  4  9  3 12 11

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc18_3
<labelled<double>[12]>: SHOWING AFFECTION IN PUBLIC - TWO WOMEN
 [1]  5  8  9 10  6  7  1  4  3  2 12 11

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc19
<labelled<double>[3]>: TRANSGENDER - CHANGE CIVIL DOCUMENTS
[1] 1 2 3

Labels:
 value label
     1   Yes
     2    No
     3    DK

And we recode them so they appear as NAs:

missing_values <- list(
  d8 = c(98, 99, 0, 1),
  d11 = 99,
  d25 = c(4, 8),
  d60 = c(4, 7),
  sd1_4 = c(3, 4),
  sd1_7 = c(3, 4),
  sd1_8 = c(3, 4),
  sd3 = c(15, 16),
  qc1_4 = 6,
  qc2_4 = 16,
  qc2_6 = 16,
  qc2_7 = 16,
  qc4_7 = c(17, 18),
  qc4_8 = c(17, 18),
  qc4_9 = c(17, 18),
  qc6_1 = 12, 
  qc6_2 = 12,
  qc6_10 = 12,
  qc6_11 = 12,
  qc7 = 12,
  qc9_4 = c(6, 7),
  qc9_5 = c(6, 7),
  qc9_10 = c(6, 7),
  qc9_11 = c(6, 7),
  qc11_6 = 5,
  qc12_10 = c(12, 13),
  qc12_11 = c(12, 13),
  qc12_12 = c(12, 13),
  qc13_10 = c(12, 13),
  qc13_11 = c(12, 13),
  qc13_12 = c(12, 13),
  qc15_1 = 5,
  qc15_2 = 5,
  qc15_3 = 5,
  qc17_3 = 5,
  qc17_4 = 5,
  qc17_5 = 5,
  qc18_1 = c(11, 12), 
  qc18_2 = c(11, 12),
  qc18_3 = c(11, 12),
  qc19 = 3
)

# Replace the specific missing values of each variable with NA

for (var in names(missing_values)) {
  first_clean_data[[var]][first_clean_data[[var]] %in% missing_values[[var]]] <- NA
}

# In the questions where the value "11" is indifferent, we include it in point "5" which is the "midpoint" in order to maintain the 1-10 scale.

first_clean_data <- first_clean_data |>
  mutate(across(c(qc6_1, qc6_2, qc6_10, qc6_11, 
                  qc12_10, qc12_11, qc12_12, 
                  qc13_10, qc13_11, qc13_12), 
                ~ ifelse(. == 11, 5, .)))
 sapply(first_clean_data, unique)
$isocntry
 [1] "BE"   "DK"   "GR"   "ES"   "FI"   "FR"   "IE"   "IT"   "LU"   "NL"  
[11] "AT"   "PT"   "SE"   "DE-W" "DE-E" "GB"   "BG"   "CY"   "CZ"   "EE"  
[21] "HU"   "LV"   "LT"   "MT"   "PL"   "RO"   "SK"   "SI"   "HR"  

$country
<labelled<double>[29]>: COUNTRY/SAMPLE ID (SERIES STANDARD)
 [1]  2  7 11 12 16  1  8  5  6  3 18 13 17  4 14  9 29 19 20 21 22 23 24 25 26
[26] 30 27 28 32

Labels:
 value                                        label
     1                                  FR - France
     2                                 BE - Belgium
     3                         NL - The Netherlands
     4                        DE-W - Germany - West
     5                                   IT - Italy
     6                              LU - Luxembourg
     7                                 DK - Denmark
     8                                 IE - Ireland
     9                      GB-UKM - United Kingdom
    10 GB-NIR Northern Ireland (NO SEPARATE SAMPLE)
    11                                  GR - Greece
    12                                    ES -Spain
    13                                PT - Portugal
    14                            DE-E Germany East
    15                                            -
    16                                 FI - Finland
    17                                  SE - Sweden
    18                                 AT - Austria
    19                       CY - Cyprus (Republic)
    20                          CZ - Czech Republic
    21                                 EE - Estonia
    22                                 HU - Hungary
    23                                  LV - Latvia
    24                               LT - Lithuania
    25                                   MT - Malta
    26                                  PL - Poland
    27                                SK - Slovakia
    28                                SI - Slovenia
    29                                BG - Bulgaria
    30                                 RO - Romania
    31                   TR - Turkey (NOT INCLUDED)
    32                                 HR - Croatia
    33           CY-TCC - Cyprus TCC (NOT INCLUDED)
    34          MK - Makedonia/FYROM (NOT INCLUDED)
    35               ME - Montenegro (NOT INCLUDED)
    36                   RS - Serbia (NOT INCLUDED)
    41                   NO - Norway (NOT INCLUDED)
    42              CH - Switzerland (NOT INCLUDED)
    43                  IS - Iceland (NOT INCLUDED)
    44            LI - Liechtenstein (NOT INCLUDED)

$d8
<labelled<double>[83]>: AGE EDUCATION
 [1] 20 19 25 23 21 22 18 17 NA 97 26 16  7 24 28 47 14 15 13 65 12 67 27 45 29
[26] 10  2 33 32 41 82 75 40 72 30 42 58 43 35 39 38 37 55 31 50 36 70 48 54 34
[51] 44 49 52  3  9 11  8 85 74 62  6 51 56 63 68 60 64 57 69 90  5  4 80 46 66
[76] 87 61 78 53 59 76 71 77

Labels:
 value                  label
     0                Refusal
     2                2 years
    90               90 years
    97 No full-time education
    98         Still studying
    99                     DK

$d10
<labelled<double>[2]>: GENDER
[1] 1 2

Labels:
 value label
     1   Man
     2 Woman

$d11
<labelled<double>[83]>: AGE EXACT
 [1] 51 62 38 29 63 41 48 88 44 45 54 34 23 49 46 25 33 27 61 57 58 50 60 28 32
[26] 17 20 19 55 42 30 35 47 37 40 39 43 67 89 36 56 72 52 71 24 18 76 68 73 77
[51] 65 15 64 70 21 69 75 22 80 66 85 53 81 84 83 79 86 78 74 16 31 59 82 26 91
[76] 90 92 87 94 93 96 98 95

Labels:
 value    label
    15 15 years
    98 98 years

$d25
<labelled<double>[4]>: TYPE OF COMMUNITY
[1]  3  1  2 NA

Labels:
 value                      label
     1      Rural area or village
     2 Small or middle sized town
     3                 Large town
     8                         DK

$d60
<labelled<double>[4]>: DIFFICULTIES PAYING BILLS - LAST YEAR
[1]  2  3  1 NA

Labels:
 value              label
     1   Most of the time
     2  From time to time
     3 Almost never/never
     7   Refusal (SPONT.)

$sd1_4
<labelled<double>[3]>: CONTACT: GAY LESBIAN OR BISEXUAL
[1]  2  1 NA

Labels:
 value                 label
     1                   Yes
     2                    No
     3 Refusal (SPONTANEOUS)
     4                    DK

$sd1_7
<labelled<double>[3]>: CONTACT: TRANSGENDER/TRANSSEXUAL
[1]  2  1 NA

Labels:
 value                 label
     1                   Yes
     2                    No
     3 Refusal (SPONTANEOUS)
     4                    DK

$sd1_8
<labelled<double>[3]>: CONTACT: INTERSEX
[1]  2  1 NA

Labels:
 value                 label
     1                   Yes
     2                    No
     3 Refusal (SPONTANEOUS)
     4                    DK

$sd2_5
<labelled<double>[2]>: OUTGROUP MEMBER: SEXUAL MINORITY
[1] 0 1

Labels:
 value
     0
     1
                                                                          label
                                                                  Not mentioned
 A sexual minority (like being gay, lesbian, bisexual, transgender or intersex)

$sd3
<labelled<double>[15]>: RELIGION - DENOMINATION
 [1]  1 12 13  8  4  3  7  2  6 14  5 10 NA 11  9

Labels:
 value                    label
     1                 Catholic
     2       Orthodox Christian
     3               Protestant
     4          Other Christian
     5                   Jewish
     6            Muslim - Shia
     7           Muslim - Sunni
     8             Other Muslim
     9                     Sikh
    10                 Buddhist
    11                    Hindu
    12                  Atheist
    13 Non believer or agnostic
    14                    Other
    15    Refusal (SPONTANEOUS)
    16                       DK

$qc1_4
<labelled<double>[6]>: DISCRIMINATION IN CTRY: SEXUAL ORIENTATION
[1]  2  3  4  1  5 NA

Labels:
 value                      label
     1            Very widespread
     2          Fairly widespread
     3                Fairly rare
     4                  Very rare
     5 Non-existent (SPONTANEOUS)
     6                         DK

$qc2_4
<labelled<double>[2]>: EXPERIENCED DISCRIMINATION: SEXUAL ORIENTATION
[1] 0 1

Labels:
 value                                               label
     0                                       Not mentioned
     1 Sexual orientation (being gay, lesbian or bisexual)

$qc2_6
<labelled<double>[2]>: EXPERIENCED DISCRIMINATION: BEING TRANSGENDER
[1] 0 1

Labels:
 value             label
     0     Not mentioned
     1 Being transgender

$qc2_7
<labelled<double>[2]>: EXPERIENCED DISCRIMINATION: BEING INTERSEX
[1] 0 1

Labels:
 value          label
     0  Not mentioned
     1 Being intersex

$qc4_7
<labelled<double>[2]>: JOB CANDIDATE DISADVANTAGE: GENDER
[1] 0 1

Labels:
 value                                        label
     0                                Not mentioned
     1 The candidate's gender or sex (man or woman)

$qc4_8
<labelled<double>[2]>: JOB CANDIDATE DISADVANTAGE: GENDER IDENTITY
[1] 0 1

Labels:
 value                                               label
     0                                       Not mentioned
     1 The candidate's gender identity (being transgender)

$qc4_9
<labelled<double>[2]>: JOB CANDIDATE DISADVANTAGE: SEXUAL ORIENTATION
[1] 1 0

Labels:
 value                                                               label
     0                                                       Not mentioned
     1 The candidate’s sexual orientation (being gay, lesbian or bisexual)

$qc4_10
<labelled<double>[2]>: JOB CANDIDATE DISADVANTAGE: INTERSEX
[1] 0 1

Labels:
 value                                                label
     0                                        Not mentioned
     1 The candidate's sex characteristics (being intersex)

$qc6_1
 [1] 10  9  8  5  7  6  2  3  4  1 NA

$qc6_2
 [1]  8  7  4 10  9  5  3  2  6  1 NA

$qc6_10
 [1]  7  1 10  5  9  2  8  4  6  3 NA

$qc6_11
 [1]  7  2  4 10  1  5  9  8  6  3 NA

$qc7
<labelled<double>[12]>: EFFORTS TO FIGHT DISCRIMINATION - RATING
 [1]  7  3  6  9  4  8  5  1  2 NA 10 11

Labels:
 value                                          label
     1                         1 Not at all effective
     2                                              2
     3                                              3
     4                                              4
     5                                              5
     6                                              6
     7                                              7
     8                                              8
     9                                              9
    10                              10 Very effective
    11 No efforts made in (OUR COUNTRY) (SPONTANEOUS)
    12                                             DK

$qc9_4
<labelled<double>[6]>: DIVERSITY AT WORK PROMOTION: GENDER
[1]  1 NA  2  3  4  5

Labels:
 value                                               label
     1                                     Yes, definitely
     2                                 Yes, to some extent
     3                                      No, not really
     4                                  No, definitely not
     5 There is no need to promote diversity (SPONTANEOUS)
     6                        Not applicable (SPONTANEOUS)
     7                                                  DK

$qc9_5
<labelled<double>[6]>: DIVERSITY AT WORK PROMOTION: SEXUAL ORIENTATION
[1]  3 NA  1  2  4  5

Labels:
 value                                               label
     1                                     Yes, definitely
     2                                 Yes, to some extent
     3                                      No, not really
     4                                  No, definitely not
     5 There is no need to promote diversity (SPONTANEOUS)
     6                        Not applicable (SPONTANEOUS)
     7                                                  DK

$qc9_10
<labelled<double>[6]>: DIVERSITY AT WORK PROMOTION: BEING TRANSGENDER
[1]  4 NA  1  3  2  5

Labels:
 value                                               label
     1                                     Yes, definitely
     2                                 Yes, to some extent
     3                                      No, not really
     4                                  No, definitely not
     5 There is no need to promote diversity (SPONTANEOUS)
     6                        Not applicable (SPONTANEOUS)
     7                                                  DK

$qc9_11
<labelled<double>[6]>: DIVERSITY AT WORK PROMOTION: BEING INTERSEX
[1]  4 NA  1  3  2  5

Labels:
 value                                               label
     1                                     Yes, definitely
     2                                 Yes, to some extent
     3                                      No, not really
     4                                  No, definitely not
     5 There is no need to promote diversity (SPONTANEOUS)
     6                        Not applicable (SPONTANEOUS)
     7                                                  DK

$qc11_6
<labelled<double>[5]>: CENSUS INFO - SEXUAL ORIENTATION
[1]  1  3  2  4 NA

Labels:
 value              label
     1  Totally in favour
     2 Somewhat in favour
     3   Somewhat opposed
     4    Totally opposed
     5                 DK

$qc12_10
 [1]  6  4  5 10  3  7  8  1  2  9 NA

$qc12_11
 [1] 10  3  5  7  2  1  8  6  9  4 NA

$qc12_12
 [1]  5  3 10  7  6  2  1  8  9  4 NA

$qc13_10
 [1]  2  1  4 10  7  3  5  6  8  9 NA

$qc13_11
 [1]  1  2 10  5  3  4  6  7  9  8 NA

$qc13_12
 [1]  1 10  5  3  6  7  8  2  9  4 NA

$qc15_1
<labelled<double>[5]>: LGB STATEMENTS - SAME RIGHTS AS HETEROSEXUAL
[1]  2  1  3  4 NA

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc15_2
<labelled<double>[5]>: LGB STATEMENTS - NOTHING WRONG WITH SAME SEX RELATIONSHIPS
[1]  2  1  3  4 NA

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc15_3
<labelled<double>[5]>: LGB STATEMENTS - ALLOW SAME SEX MARRIAGE THROUGHOUT EUROPE
[1]  2  3  1  4 NA

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc17_3
<labelled<double>[5]>: SCHOOL SHOULD INFORM ABOUT DIVERSITY - SEXUAL ORIENTATION
[1]  1  2  3  4 NA

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc17_4
<labelled<double>[5]>: SCHOOL SHOULD INFORM ABOUT DIVERSITY - BEING TRANSGENDER
[1]  2  3  1  4 NA

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc17_5
<labelled<double>[5]>: SCHOOL SHOULD INFORM ABOUT DIVERSITY - BEING INTERSEX
[1]  2  3  1  4 NA

Labels:
 value            label
     1    Totally agree
     2    Tend to agree
     3 Tend to disagree
     4 Totally disagree
     5               DK

$qc18_1
<labelled<double>[11]>: SHOWING AFFECTION IN PUBLIC - MAN AND WOMAN
 [1]  9 10  6  7  3  8  5  4  1  2 NA

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc18_2
<labelled<double>[11]>: SHOWING AFFECTION IN PUBLIC - TWO MEN
 [1]  5 10  2  1  6  7  8  4  9  3 NA

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc18_3
<labelled<double>[11]>: SHOWING AFFECTION IN PUBLIC - TWO WOMEN
 [1]  5  8  9 10  6  7  1  4  3  2 NA

Labels:
 value                     label
     1  1 Not at all comfortable
     2                         2
     3                         3
     4                         4
     5                         5
     6                         6
     7                         7
     8                         8
     9                         9
    10    10 Totally comfortable
    11 Indifferent (SPONTANEOUS)
    12                        DK

$qc19
<labelled<double>[3]>: TRANSGENDER - CHANGE CIVIL DOCUMENTS
[1]  1  2 NA

Labels:
 value label
     1   Yes
     2    No
     3    DK

In addition, we join DE-E and DE-W under DE since we want the information for the entire country (Germany)

first_clean_data <- first_clean_data %>%
  mutate(isocntry = recode(isocntry, "DE-W" = "DE", "DE-E" = "DE"))

unique(first_clean_data$isocntry)
 [1] "BE" "DK" "GR" "ES" "FI" "FR" "IE" "IT" "LU" "NL" "AT" "PT" "SE" "DE" "GB"
[16] "BG" "CY" "CZ" "EE" "HU" "LV" "LT" "MT" "PL" "RO" "SK" "SI" "HR"

Joining rainbow dataset:

ILGA-Europe’s Rainbow Map contains a database that annually ranks European countries based on their laws and policies that provide rights and protections to LGBT. We’ve chosen to incorporate this data for a study because it gives a comprehensible understanding of the laws each country has for queer people, which can provide insight on their level of acceptance of trans people.

Load rainbow database:

rainbow <- read.csv("2024-rainbow-map-data.csv")

head(rainbow)
   X     X.1 RANKING     Equality...non.discrimination
1                    Constitution (sexual orientation)
2                                                0,16%
3 AL Albania   36,38                                 0
4 AD Andorra   43,23                                 1
5 AM Armenia    9,16                                 0
6 AT Austria   49,63                                 1
  Equality...non.discrimination.1       Equality...non.discrimination.2
1 Employment (sexual orientation) Goods & services (sexual orientation)
2                           1,10%                                 1,10%
3                               1                                     1
4                               1                                     1
5                               0                                     0
6                               1                          0.8888888889
  Equality...non.discrimination.3 Equality...non.discrimination.4
1  Education (sexual orientation)     Health (sexual orientation)
2                           1,10%                           1,10%
3                               1                               0
4                               1                               1
5                               0                               0
6                    0.8888888889                    0.8888888889
                Equality...non.discrimination.5
1 Conversion practices ban (sexual orientation)
2                                         0,80%
3                                             0
4                                             0
5                                             0
6                                             0
             Equality...non.discrimination.6
1 Equality body mandate (sexual orientation)
2                                      0,78%
3                                          1
4                                          1
5                                          0
6                                          1
            Equality...non.discrimination.7 Equality...non.discrimination.8
1 Equality action plan (sexual orientation)  Constitution (gender identity)
2                                     0,88%                           0,16%
3                                         0                               0
4                                         0                               0
5                                         0                               0
6                                         0                               1
  Equality...non.discrimination.9   Equality...non.discrimination.10
1    Employment (gender identity) Goods & services (gender identity)
2                           1,10%                              1,10%
3                               1                                  1
4                               1                                  1
5                               0                                  0
6                               1                                  1
  Equality...non.discrimination.11 Equality...non.discrimination.12
1      Education (gender identity)         Health (gender identity)
2                            1,10%                            1,10%
3                                1                                0
4                                1                                1
5                                0                                0
6                                0                                0
            Equality...non.discrimination.13
1 Conversion practices ban (gender identity)
2                                      0,80%
3                                          0
4                                          0
5                                          0
6                                          0
         Equality...non.discrimination.14
1 Equality body mandate (gender identity)
2                                   0,78%
3                                       1
4                                       1
5                                       0
6                                       1
        Equality...non.discrimination.15 Equality...non.discrimination.16
1 Equality action plan (gender identity)          Law (gender expression)
2                                  0,88%                            1,83%
3                                      0                                0
4                                      0                                1
5                                      0                                0
6                                      0                                0
    Equality...non.discrimination.17 Equality...non.discrimination.18
1 Constitution (sex characteristics) Employment (sex characteristics)
2                              0,16%                            1,10%
3                                  0                                1
4                                  0                                0
5                                  0                                0
6                                  0                                0
        Equality...non.discrimination.19 Equality...non.discrimination.20
1 Goods & services (sex characteristics)  Education (sex characteristics)
2                                  1,10%                            1,10%
3                                      1                                1
4                                      0                                0
5                                      0                                0
6                                      0                                0
  Equality...non.discrimination.21            Equality...non.discrimination.22
1     Health (sex characteristics) Equality body mandate (sex characteristics)
2                            1,10%                                       0,78%
3                                0                                           1
4                                0                                           0
5                                0                                           0
6                                0                                           0
            Equality...non.discrimination.23 Equality...non.discrimination.24
1 Equality action plan (sex characteristics)                  Blood donations
2                                      0,88%                            0,91%
3                                          0                                1
4                                          0                                0
5                                          0                                1
6                                          0                                1
             Family                                            Family.1
1 Marriage equality Registered partnership (similar rights to marriage)
2             3,75%                                               3,00%
3                 0                                                   0
4                 1                                                   1
5                 0                                                   0
6                 1                                                   1
                                 Family.2     Family.3
1 Registered partnership (limited rights) Cohabitation
2                                   2,00%        1,00%
3                                       0            0
4                                       1            0
5                                       0            0
6                                       0            1
                                  Family.4       Family.5
1 No constitutional limitation on marriage Joint adoption
2                                    0,75%          3,00%
3                                        1              0
4                                        1              1
5                                        0              0
6                                        1              1
                Family.6                        Family.7
1 Second-parent adoption Automatic co-parent recognition
2                  1,75%                           1,75%
3                      0                               0
4                      1                               0
5                      0                               0
6                      1                               1
                                   Family.8
1 Medically assisted insemination (couples)
2                                     2,00%
3                                         0
4                                         0
5                                         0
6                                         1
                                   Family.9                       Family.10
1 Medically assisted insemination (singles) Recognition of trans parenthood
2                                     2,00%                           2,50%
3                                         0                               0
4                                         0                               0
5                                         1                               0
6                                         0                               0
             Hate.crime...hate.speech           Hate.crime...hate.speech.1
1 Hate crime law (sexual orientation) Hate speech law (sexual orientation)
2                               2,43%                                2,43%
3                                   1                                    1
4                                   1                                    0
5                                   0                                    0
6                                   1                                    1
                   Hate.crime...hate.speech.2       Hate.crime...hate.speech.3
1 Policy tackling hatred (sexual orientation) Hate crime law (gender identity)
2                                       2,28%                            2,43%
3                                           0                                1
4                                           0                                0
5                                           0                                0
6                                           0                                0
         Hate.crime...hate.speech.4               Hate.crime...hate.speech.5
1 Hate speech law (gender identity) Policy tackling hatred (gender identity)
2                             2,43%                                    2,28%
3                                 1                                        0
4                                 0                                        0
5                                 0                                        0
6                                 0                                        0
  Hate.crime...hate.speech.6          Hate.crime...hate.speech.7
1  Hate crime law (intersex) Policies tackling hatred (intersex)
2                      2,43%                               2,28%
3                          0                                   0
4                          0                                   0
5                          0                                   0
6                          0                                   0
                                       Legal.gender.recognition
1 No legal framework making legal gender recognition impossible
2                                                         0,75%
3                                                             1
4                                                             1
5                                                             1
6                                                             1
   Legal.gender.recognition.1             Legal.gender.recognition.2
1 Existence of legal measures Existence of administrative procedures
2                       1,50%                                  1,00%
3                           0                                      0
4                           1                                      0
5                           0                                      0
6                           0                                      1
  Legal.gender.recognition.3      Legal.gender.recognition.4
1                Name change No age restriction, Name change
2                      1,00%                           0,15%
3                          0                               0
4                          1                               1
5                          1                               0
6                          1                               1
  Legal.gender.recognition.5 Legal.gender.recognition.6
1         Self-determination     Non-binary recognition
2                      2,00%                      1,00%
3                          0                          0
4                          0                          0
5                          0                          0
6                          0                          0
                                              Legal.gender.recognition.7
1 No 'Gender Identity Disorder' diagnosis/psychological opinion required
2                                                                  1,75%
3                                                                      0
4                                                                      1
5                                                                      0
6                                                                      0
                   Legal.gender.recognition.8
1 No compulsory medical intervention required
2                                       1,15%
3                                           0
4                                           1
5                                           0
6                                           1
                    Legal.gender.recognition.9
1 No compulsory surgical intervention required
2                                        1,15%
3                                            0
4                                            1
5                                            0
6                                            1
           Legal.gender.recognition.10    Legal.gender.recognition.11
1 No compulsory sterilisation required No compulsory divorce required
2                                1,70%                          1,05%
3                                    0                              0
4                                    1                              1
5                                    0                              0
6                                    1                              1
  Legal.gender.recognition.12
1          No age restriction
2                       1,00%
3                           0
4                           0
5                           0
6                           1
                           Legal.gender.recognition.13
1 Legal gender recognition procedures exist for minors
2                                                0,30%
3                                                    0
4                                                    0
5                                                    0
6                                                    1
  Legal.gender.recognition.14
1           Depathologisation
2                       2,00%
3                           0
4                           0
5                           0
6                           0
                                                Intersex.bodily.integrity
1 Prohibition of medical intervention without informed consent (intersex)
2                                                                   2,50%
3                                                                       0
4                                                                       0
5                                                                       0
6                                                                       0
                           Intersex.bodily.integrity.1
1 Universality of prohibition of medical interventions
2                                                0,50%
3                                                    0
4                                                    0
5                                                    0
6                                                    0
                  Intersex.bodily.integrity.2
1 Existence of effective monitoring mechanism
2                                       1,00%
3                                           0
4                                           0
5                                           0
6                                           0
                    Intersex.bodily.integrity.3
1 Access to justice for victims and reparations
2                                         1,00%
3                                             0
4                                             0
5                                             0
6                                             0
                                                            Civil.society.space
1 Public event held, no state obstruction of freedom of assembly (last 3 years)
2                                                                         1,50%
3                                                                             1
4                                                                             1
5                                                                             0
6                                                                             1
                                         Civil.society.space.1
1 Public event held, there is enough protection (last 3 years)
2                                                        1,50%
3                                                            1
4                                                            1
5                                                            0
6                                                            1
                                                             Civil.society.space.2
1 Associations operate, no state obstruction of freedom association (last 3 years)
2                                                                            1,50%
3                                                                                1
4                                                                                1
5                                                                                1
6                                                                                1
                         Civil.society.space.3
1 LGBTI human rights defenders are not at risk
2                                        1,50%
3                                            1
4                                            1
5                                            0
6                                            1
              Civil.society.space.4
1 No laws limiting external funding
2                             1,50%
3                                 1
4                                 1
5                                 1
6                                 1
                                    Civil.society.space.5
1 No laws limiting freedom of expression (national/local)
2                                                   1,50%
3                                                       1
4                                                       1
5                                                       1
6                                                       1
                           Asylum                                     Asylum.1
1 Asylum law (sexual orientation) Other positive measures (sexual orientation)
2                           1,50%                                        1,50%
3                               1                                            0
4                               0                                            0
5                               0                                            0
6                               1                                            0
                      Asylum.2                                  Asylum.3
1 Asylum law (gender identity) Other positive measures (gender identity)
2                        1,50%                                     1,50%
3                            1                                         0
4                            0                                         0
5                            0                                         0
6                            1                                         1
               Asylum.4                           Asylum.5
1 Asylum law (intersex) Other positive measures (intersex)
2                 1,50%                              1,50%
3                     0                                  0
4                     0                                  0
5                     0                                  0
6                     0                                  0

Cleaning rainbow:

library(tidyr)

# Rename columns
colnames(rainbow)[1:2] <- c("code", "country")

# First row as colnames
colnames(rainbow) <- rainbow[1, ]

# Delete first row
rainbow <- rainbow[-1, ]

head(rainbow)
                      Constitution (sexual orientation)
2                                                 0,16%
3 AL    Albania 36,38                                 0
4 AD    Andorra 43,23                                 1
5 AM    Armenia  9,16                                 0
6 AT    Austria 49,63                                 1
7 AZ Azerbaijan  2,25                                 0
  Employment (sexual orientation) Goods & services (sexual orientation)
2                           1,10%                                 1,10%
3                               1                                     1
4                               1                                     1
5                               0                                     0
6                               1                          0.8888888889
7                               0                                     0
  Education (sexual orientation) Health (sexual orientation)
2                          1,10%                       1,10%
3                              1                           0
4                              1                           1
5                              0                           0
6                   0.8888888889                0.8888888889
7                              0                           0
  Conversion practices ban (sexual orientation)
2                                         0,80%
3                                             0
4                                             0
5                                             0
6                                             0
7                                             0
  Equality body mandate (sexual orientation)
2                                      0,78%
3                                          1
4                                          1
5                                          0
6                                          1
7                                          0
  Equality action plan (sexual orientation) Constitution (gender identity)
2                                     0,88%                          0,16%
3                                         0                              0
4                                         0                              0
5                                         0                              0
6                                         0                              1
7                                         0                              0
  Employment (gender identity) Goods & services (gender identity)
2                        1,10%                              1,10%
3                            1                                  1
4                            1                                  1
5                            0                                  0
6                            1                                  1
7                            0                                  0
  Education (gender identity) Health (gender identity)
2                       1,10%                    1,10%
3                           1                        0
4                           1                        1
5                           0                        0
6                           0                        0
7                           0                        0
  Conversion practices ban (gender identity)
2                                      0,80%
3                                          0
4                                          0
5                                          0
6                                          0
7                                          0
  Equality body mandate (gender identity)
2                                   0,78%
3                                       1
4                                       1
5                                       0
6                                       1
7                                       0
  Equality action plan (gender identity) Law (gender expression)
2                                  0,88%                   1,83%
3                                      0                       0
4                                      0                       1
5                                      0                       0
6                                      0                       0
7                                      0                       0
  Constitution (sex characteristics) Employment (sex characteristics)
2                              0,16%                            1,10%
3                                  0                                1
4                                  0                                0
5                                  0                                0
6                                  0                                0
7                                  0                                0
  Goods & services (sex characteristics) Education (sex characteristics)
2                                  1,10%                           1,10%
3                                      1                               1
4                                      0                               0
5                                      0                               0
6                                      0                               0
7                                      0                               0
  Health (sex characteristics) Equality body mandate (sex characteristics)
2                        1,10%                                       0,78%
3                            0                                           1
4                            0                                           0
5                            0                                           0
6                            0                                           0
7                            0                                           0
  Equality action plan (sex characteristics) Blood donations Marriage equality
2                                      0,88%           0,91%             3,75%
3                                          0               1                 0
4                                          0               0                 1
5                                          0               1                 0
6                                          0               1                 1
7                                          0               0                 0
  Registered partnership (similar rights to marriage)
2                                               3,00%
3                                                   0
4                                                   1
5                                                   0
6                                                   1
7                                                   0
  Registered partnership (limited rights) Cohabitation
2                                   2,00%        1,00%
3                                       0            0
4                                       1            0
5                                       0            0
6                                       0            1
7                                       0            0
  No constitutional limitation on marriage Joint adoption
2                                    0,75%          3,00%
3                                        1              0
4                                        1              1
5                                        0              0
6                                        1              1
7                                        0              0
  Second-parent adoption Automatic co-parent recognition
2                  1,75%                           1,75%
3                      0                               0
4                      1                               0
5                      0                               0
6                      1                               1
7                      0                               0
  Medically assisted insemination (couples)
2                                     2,00%
3                                         0
4                                         0
5                                         0
6                                         1
7                                         0
  Medically assisted insemination (singles) Recognition of trans parenthood
2                                     2,00%                           2,50%
3                                         0                               0
4                                         0                               0
5                                         1                               0
6                                         0                               0
7                                         0                               0
  Hate crime law (sexual orientation) Hate speech law (sexual orientation)
2                               2,43%                                2,43%
3                                   1                                    1
4                                   1                                    0
5                                   0                                    0
6                                   1                                    1
7                                   0                                    0
  Policy tackling hatred (sexual orientation) Hate crime law (gender identity)
2                                       2,28%                            2,43%
3                                           0                                1
4                                           0                                0
5                                           0                                0
6                                           0                                0
7                                           0                                0
  Hate speech law (gender identity) Policy tackling hatred (gender identity)
2                             2,43%                                    2,28%
3                                 1                                        0
4                                 0                                        0
5                                 0                                        0
6                                 0                                        0
7                                 0                                        0
  Hate crime law (intersex) Policies tackling hatred (intersex)
2                     2,43%                               2,28%
3                         0                                   0
4                         0                                   0
5                         0                                   0
6                         0                                   0
7                         0                                   0
  No legal framework making legal gender recognition impossible
2                                                         0,75%
3                                                             1
4                                                             1
5                                                             1
6                                                             1
7                                                             1
  Existence of legal measures Existence of administrative procedures
2                       1,50%                                  1,00%
3                           0                                      0
4                           1                                      0
5                           0                                      0
6                           0                                      1
7                           0                                      0
  Name change No age restriction, Name change Self-determination
2       1,00%                           0,15%              2,00%
3           0                               0                  0
4           1                               1                  0
5           1                               0                  0
6           1                               1                  0
7           0                               0                  0
  Non-binary recognition
2                  1,00%
3                      0
4                      0
5                      0
6                      0
7                      0
  No 'Gender Identity Disorder' diagnosis/psychological opinion required
2                                                                  1,75%
3                                                                      0
4                                                                      1
5                                                                      0
6                                                                      0
7                                                                      0
  No compulsory medical intervention required
2                                       1,15%
3                                           0
4                                           1
5                                           0
6                                           1
7                                           0
  No compulsory surgical intervention required
2                                        1,15%
3                                            0
4                                            1
5                                            0
6                                            1
7                                            0
  No compulsory sterilisation required No compulsory divorce required
2                                1,70%                          1,05%
3                                    0                              0
4                                    1                              1
5                                    0                              0
6                                    1                              1
7                                    0                              0
  No age restriction Legal gender recognition procedures exist for minors
2              1,00%                                                0,30%
3                  0                                                    0
4                  0                                                    0
5                  0                                                    0
6                  1                                                    1
7                  0                                                    0
  Depathologisation
2             2,00%
3                 0
4                 0
5                 0
6                 0
7                 0
  Prohibition of medical intervention without informed consent (intersex)
2                                                                   2,50%
3                                                                       0
4                                                                       0
5                                                                       0
6                                                                       0
7                                                                       0
  Universality of prohibition of medical interventions
2                                                0,50%
3                                                    0
4                                                    0
5                                                    0
6                                                    0
7                                                    0
  Existence of effective monitoring mechanism
2                                       1,00%
3                                           0
4                                           0
5                                           0
6                                           0
7                                           0
  Access to justice for victims and reparations
2                                         1,00%
3                                             0
4                                             0
5                                             0
6                                             0
7                                             0
  Public event held, no state obstruction of freedom of assembly (last 3 years)
2                                                                         1,50%
3                                                                             1
4                                                                             1
5                                                                             0
6                                                                             1
7                                                                             0
  Public event held, there is enough protection (last 3 years)
2                                                        1,50%
3                                                            1
4                                                            1
5                                                            0
6                                                            1
7                                                            0
  Associations operate, no state obstruction of freedom association (last 3 years)
2                                                                            1,50%
3                                                                                1
4                                                                                1
5                                                                                1
6                                                                                1
7                                                                                0
  LGBTI human rights defenders are not at risk
2                                        1,50%
3                                            1
4                                            1
5                                            0
6                                            1
7                                            0
  No laws limiting external funding
2                             1,50%
3                                 1
4                                 1
5                                 1
6                                 1
7                                 0
  No laws limiting freedom of expression (national/local)
2                                                   1,50%
3                                                       1
4                                                       1
5                                                       1
6                                                       1
7                                                       1
  Asylum law (sexual orientation) Other positive measures (sexual orientation)
2                           1,50%                                        1,50%
3                               1                                            0
4                               0                                            0
5                               0                                            0
6                               1                                            0
7                               0                                            0
  Asylum law (gender identity) Other positive measures (gender identity)
2                        1,50%                                     1,50%
3                            1                                         0
4                            0                                         0
5                            0                                         0
6                            1                                         1
7                            0                                         0
  Asylum law (intersex) Other positive measures (intersex)
2                 1,50%                              1,50%
3                     0                                  0
4                     0                                  0
5                     0                                  0
6                     0                                  0
7                     0                                  0

Erase row 2 and get back the names of the columns:

rainbow <- rainbow[-1, ]
colnames(rainbow)[1:3] <- c("code", "country", "ranking")

# Reset row indexes
rownames(rainbow) <- NULL


head(rainbow)
  code    country ranking Constitution (sexual orientation)
1   AL    Albania   36,38                                 0
2   AD    Andorra   43,23                                 1
3   AM    Armenia    9,16                                 0
4   AT    Austria   49,63                                 1
5   AZ Azerbaijan    2,25                                 0
6   BY    Belarus   11,16                                 0
  Employment (sexual orientation) Goods & services (sexual orientation)
1                               1                                     1
2                               1                                     1
3                               0                                     0
4                               1                          0.8888888889
5                               0                                     0
6                               0                                     0
  Education (sexual orientation) Health (sexual orientation)
1                              1                           0
2                              1                           1
3                              0                           0
4                   0.8888888889                0.8888888889
5                              0                           0
6                              0                           0
  Conversion practices ban (sexual orientation)
1                                             0
2                                             0
3                                             0
4                                             0
5                                             0
6                                             0
  Equality body mandate (sexual orientation)
1                                          1
2                                          1
3                                          0
4                                          1
5                                          0
6                                          0
  Equality action plan (sexual orientation) Constitution (gender identity)
1                                         0                              0
2                                         0                              0
3                                         0                              0
4                                         0                              1
5                                         0                              0
6                                         0                              0
  Employment (gender identity) Goods & services (gender identity)
1                            1                                  1
2                            1                                  1
3                            0                                  0
4                            1                                  1
5                            0                                  0
6                            0                                  0
  Education (gender identity) Health (gender identity)
1                           1                        0
2                           1                        1
3                           0                        0
4                           0                        0
5                           0                        0
6                           0                        0
  Conversion practices ban (gender identity)
1                                          0
2                                          0
3                                          0
4                                          0
5                                          0
6                                          0
  Equality body mandate (gender identity)
1                                       1
2                                       1
3                                       0
4                                       1
5                                       0
6                                       0
  Equality action plan (gender identity) Law (gender expression)
1                                      0                       0
2                                      0                       1
3                                      0                       0
4                                      0                       0
5                                      0                       0
6                                      0                       0
  Constitution (sex characteristics) Employment (sex characteristics)
1                                  0                                1
2                                  0                                0
3                                  0                                0
4                                  0                                0
5                                  0                                0
6                                  0                                0
  Goods & services (sex characteristics) Education (sex characteristics)
1                                      1                               1
2                                      0                               0
3                                      0                               0
4                                      0                               0
5                                      0                               0
6                                      0                               0
  Health (sex characteristics) Equality body mandate (sex characteristics)
1                            0                                           1
2                            0                                           0
3                            0                                           0
4                            0                                           0
5                            0                                           0
6                            0                                           0
  Equality action plan (sex characteristics) Blood donations Marriage equality
1                                          0               1                 0
2                                          0               0                 1
3                                          0               1                 0
4                                          0               1                 1
5                                          0               0                 0
6                                          0               1                 0
  Registered partnership (similar rights to marriage)
1                                                   0
2                                                   1
3                                                   0
4                                                   1
5                                                   0
6                                                   0
  Registered partnership (limited rights) Cohabitation
1                                       0            0
2                                       1            0
3                                       0            0
4                                       0            1
5                                       0            0
6                                       0            0
  No constitutional limitation on marriage Joint adoption
1                                        1              0
2                                        1              1
3                                        0              0
4                                        1              1
5                                        0              0
6                                        0              0
  Second-parent adoption Automatic co-parent recognition
1                      0                               0
2                      1                               0
3                      0                               0
4                      1                               1
5                      0                               0
6                      0                               0
  Medically assisted insemination (couples)
1                                         0
2                                         0
3                                         0
4                                         1
5                                         0
6                                         0
  Medically assisted insemination (singles) Recognition of trans parenthood
1                                         0                               0
2                                         0                               0
3                                         1                               0
4                                         0                               0
5                                         0                               0
6                                         1                               0
  Hate crime law (sexual orientation) Hate speech law (sexual orientation)
1                                   1                                    1
2                                   1                                    0
3                                   0                                    0
4                                   1                                    1
5                                   0                                    0
6                                   0                                    0
  Policy tackling hatred (sexual orientation) Hate crime law (gender identity)
1                                           0                                1
2                                           0                                0
3                                           0                                0
4                                           0                                0
5                                           0                                0
6                                           0                                0
  Hate speech law (gender identity) Policy tackling hatred (gender identity)
1                                 1                                        0
2                                 0                                        0
3                                 0                                        0
4                                 0                                        0
5                                 0                                        0
6                                 0                                        0
  Hate crime law (intersex) Policies tackling hatred (intersex)
1                         0                                   0
2                         0                                   0
3                         0                                   0
4                         0                                   0
5                         0                                   0
6                         0                                   0
  No legal framework making legal gender recognition impossible
1                                                             1
2                                                             1
3                                                             1
4                                                             1
5                                                             1
6                                                             1
  Existence of legal measures Existence of administrative procedures
1                           0                                      0
2                           1                                      0
3                           0                                      0
4                           0                                      1
5                           0                                      0
6                           1                                      1
  Name change No age restriction, Name change Self-determination
1           0                               0                  0
2           1                               1                  0
3           1                               0                  0
4           1                               1                  0
5           0                               0                  0
6           1                               0                  0
  Non-binary recognition
1                      0
2                      0
3                      0
4                      0
5                      0
6                      0
  No 'Gender Identity Disorder' diagnosis/psychological opinion required
1                                                                      0
2                                                                      1
3                                                                      0
4                                                                      0
5                                                                      0
6                                                                      0
  No compulsory medical intervention required
1                                           0
2                                           1
3                                           0
4                                           1
5                                           0
6                                           1
  No compulsory surgical intervention required
1                                            0
2                                            1
3                                            0
4                                            1
5                                            0
6                                            1
  No compulsory sterilisation required No compulsory divorce required
1                                    0                              0
2                                    1                              1
3                                    0                              0
4                                    1                              1
5                                    0                              0
6                                    1                              0
  No age restriction Legal gender recognition procedures exist for minors
1                  0                                                    0
2                  0                                                    0
3                  0                                                    0
4                  1                                                    1
5                  0                                                    0
6                  0                                                    0
  Depathologisation
1                 0
2                 0
3                 0
4                 0
5                 0
6                 0
  Prohibition of medical intervention without informed consent (intersex)
1                                                                       0
2                                                                       0
3                                                                       0
4                                                                       0
5                                                                       0
6                                                                       0
  Universality of prohibition of medical interventions
1                                                    0
2                                                    0
3                                                    0
4                                                    0
5                                                    0
6                                                    0
  Existence of effective monitoring mechanism
1                                           0
2                                           0
3                                           0
4                                           0
5                                           0
6                                           0
  Access to justice for victims and reparations
1                                             0
2                                             0
3                                             0
4                                             0
5                                             0
6                                             0
  Public event held, no state obstruction of freedom of assembly (last 3 years)
1                                                                             1
2                                                                             1
3                                                                             0
4                                                                             1
5                                                                             0
6                                                                             0
  Public event held, there is enough protection (last 3 years)
1                                                            1
2                                                            1
3                                                            0
4                                                            1
5                                                            0
6                                                            0
  Associations operate, no state obstruction of freedom association (last 3 years)
1                                                                                1
2                                                                                1
3                                                                                1
4                                                                                1
5                                                                                0
6                                                                                0
  LGBTI human rights defenders are not at risk
1                                            1
2                                            1
3                                            0
4                                            1
5                                            0
6                                            0
  No laws limiting external funding
1                                 1
2                                 1
3                                 1
4                                 1
5                                 0
6                                 0
  No laws limiting freedom of expression (national/local)
1                                                       1
2                                                       1
3                                                       1
4                                                       1
5                                                       1
6                                                       0
  Asylum law (sexual orientation) Other positive measures (sexual orientation)
1                               1                                            0
2                               0                                            0
3                               0                                            0
4                               1                                            0
5                               0                                            0
6                               0                                            0
  Asylum law (gender identity) Other positive measures (gender identity)
1                            1                                         0
2                            0                                         0
3                            0                                         0
4                            1                                         1
5                            0                                         0
6                            0                                         0
  Asylum law (intersex) Other positive measures (intersex)
1                     0                                  0
2                     0                                  0
3                     0                                  0
4                     0                                  0
5                     0                                  0
6                     0                                  0

Now we have to select the variables that we’re going to use in our study. Rainbow Map ranks the countries differentiating between laws and policies that regard sexual orientation, gender identity, intersexuality and some other more general rights to the whole population (like freedom of expression or association). Because there are so many variables, we’ve chosen to keep those regarding gender identity, as it’s the core of our project.

Selection of variables:

rainbow <- rainbow |> 
  select(1:3, 12:17, 43:44, 51, 53:56, 60, 72)

Convert to numeric:

# Convert ranking and other numeric columns

rainbow <- rainbow %>%
  mutate(
    ranking = as.numeric(gsub(",", ".", ranking)),  # Replace commas with periods and convert to numeric
    across(-c(code, country, ranking), ~ as.numeric(gsub(",", ".", .x)))
  )

str(rainbow)
'data.frame':   49 obs. of  18 variables:
 $ code                                                                  : chr  "AL" "AD" "AM" "AT" ...
 $ country                                                               : chr  "Albania" "Andorra" "Armenia" "Austria" ...
 $ ranking                                                               : num  36.38 43.23 9.16 49.63 2.25 ...
 $ Constitution (gender identity)                                        : num  0 0 0 1 0 0 0 0 0 0 ...
 $ Employment (gender identity)                                          : num  1 1 0 1 0 0 1 1 1 1 ...
 $ Goods & services (gender identity)                                    : num  1 1 0 1 0 0 1 1 1 1 ...
 $ Education (gender identity)                                           : num  1 1 0 0 0 0 1 1 1 1 ...
 $ Health (gender identity)                                              : num  0 1 0 0 0 0 1 1 1 1 ...
 $ Conversion practices ban (gender identity)                            : num  0 0 0 0 0 0 1 0 0 0 ...
 $ Hate crime law (gender identity)                                      : num  1 0 0 0 0 0 1 1 0 1 ...
 $ Hate speech law (gender identity)                                     : num  1 0 0 0 0 ...
 $ Name change                                                           : num  0 1 1 1 0 1 1 1 0 0 ...
 $ Self-determination                                                    : num  0 0 0 0 0 0 1 0 0 0 ...
 $ Non-binary recognition                                                : num  0 0 0 0 0 0 0 0 0 0 ...
 $ No 'Gender Identity Disorder' diagnosis/psychological opinion required: num  0 1 0 0 0 0 1 0 0 0 ...
 $ No compulsory medical intervention required                           : num  0 1 0 1 0 1 1 0 0 0 ...
 $ No age restriction                                                    : num  0 0 0 1 0 0 0 0 0 0 ...
 $ No laws limiting freedom of expression (national/local)               : num  1 1 1 1 1 0 1 1 1 1 ...

Join with previous dataset:

library(dplyr)

# Combine the datasets
second_clean_data <- first_clean_data %>%
  left_join(rainbow, by = c("isocntry" = "code"))

second_clean_data <- second_clean_data |> select(-country.x) |> 
  rename(country = country.y) |> 
  relocate(country, .after = isocntry)
  
# See the first data after the join
head(second_clean_data)
# A tibble: 6 × 62
  isocntry country d8        d10     d11   d25     d60     sd1_4   sd1_7  sd1_8 
  <chr>    <chr>   <dbl+lbl> <dbl+l> <dbl> <dbl+l> <dbl+l> <dbl+l> <dbl+> <dbl+>
1 BE       Belgium 20        1 [Man] 51    3 [Lar… 2 [Fro… 2 [No]  2 [No] 2 [No]
2 BE       Belgium 19        2 [Wom… 62    3 [Lar… 3 [Alm… 2 [No]  2 [No] 2 [No]
3 BE       Belgium 19        2 [Wom… 38    3 [Lar… 2 [Fro… 1 [Yes] 2 [No] 2 [No]
4 BE       Belgium 25        1 [Man] 29    3 [Lar… 3 [Alm… 1 [Yes] 2 [No] 2 [No]
5 BE       Belgium 23        2 [Wom… 63    3 [Lar… 3 [Alm… 2 [No]  2 [No] 2 [No]
6 BE       Belgium 21        2 [Wom… 41    3 [Lar… 3 [Alm… 2 [No]  2 [No] 2 [No]
# ℹ 52 more variables: sd2_5 <dbl+lbl>, sd3 <dbl+lbl>, qc1_4 <dbl+lbl>,
#   qc2_4 <dbl+lbl>, qc2_6 <dbl+lbl>, qc2_7 <dbl+lbl>, qc4_7 <dbl+lbl>,
#   qc4_8 <dbl+lbl>, qc4_9 <dbl+lbl>, qc4_10 <dbl+lbl>, qc6_1 <dbl>,
#   qc6_2 <dbl>, qc6_10 <dbl>, qc6_11 <dbl>, qc7 <dbl+lbl>, qc9_4 <dbl+lbl>,
#   qc9_5 <dbl+lbl>, qc9_10 <dbl+lbl>, qc9_11 <dbl+lbl>, qc11_6 <dbl+lbl>,
#   qc12_10 <dbl>, qc12_11 <dbl>, qc12_12 <dbl>, qc13_10 <dbl>, qc13_11 <dbl>,
#   qc13_12 <dbl>, qc15_1 <dbl+lbl>, qc15_2 <dbl+lbl>, qc15_3 <dbl+lbl>, …

Now we have each row of individuals from the previous dataset associated with the existence or not of certain laws in their country.

Joining QoG dataset:

Finally, we have to join our last dataset that we’ll be using for the project, from Quality of Government. The Quality of Government (QoG) dataset includes general variables on economic conditions (e.g., female unemployment), the level of democracy, and other socio-political factors. These indicators can influence public attitudes toward transgender rights and acceptance.

Let’s load the the standard dataset from Quality of Government.

dataQoG <- read.csv("qog_std_cs_jan25.csv")

Here we are selecting useful variables and changing their names for better understanding.

dataQoG <- dataQoG |> select(cname, ccode, gggi_ggi, eu_unempytotf, eu_unempytotm, dr_sg, ess_relig, wjp_fund_right, wdi_gdpcapcur, sgi_qd)
dataQoG <- dataQoG |>
  rename(
    country_name = cname,
    country_code = ccode,
    gender_gap_index = gggi_ggi,
    eu_unemployment_female = eu_unempytotf,
    eu_unemployment_male = eu_unempytotm,
    social_globalisation = dr_sg,
    religious_importance = ess_relig,
    fundamental_rights = wjp_fund_right,
    gdp_per_capita_usd = wdi_gdpcapcur,
    quality_of_democracy = sgi_qd
  )

We join all the datasets:

# Left join to keep only countries in second_clean_data
merged_data <- second_clean_data |>
  left_join(dataQoG, by = c("country" = "country_name"))

# View the first few rows of the merged dataset
head(merged_data)
# A tibble: 6 × 71
  isocntry country d8        d10     d11   d25     d60     sd1_4   sd1_7  sd1_8 
  <chr>    <chr>   <dbl+lbl> <dbl+l> <dbl> <dbl+l> <dbl+l> <dbl+l> <dbl+> <dbl+>
1 BE       Belgium 20        1 [Man] 51    3 [Lar… 2 [Fro… 2 [No]  2 [No] 2 [No]
2 BE       Belgium 19        2 [Wom… 62    3 [Lar… 3 [Alm… 2 [No]  2 [No] 2 [No]
3 BE       Belgium 19        2 [Wom… 38    3 [Lar… 2 [Fro… 1 [Yes] 2 [No] 2 [No]
4 BE       Belgium 25        1 [Man] 29    3 [Lar… 3 [Alm… 1 [Yes] 2 [No] 2 [No]
5 BE       Belgium 23        2 [Wom… 63    3 [Lar… 3 [Alm… 2 [No]  2 [No] 2 [No]
6 BE       Belgium 21        2 [Wom… 41    3 [Lar… 3 [Alm… 2 [No]  2 [No] 2 [No]
# ℹ 61 more variables: sd2_5 <dbl+lbl>, sd3 <dbl+lbl>, qc1_4 <dbl+lbl>,
#   qc2_4 <dbl+lbl>, qc2_6 <dbl+lbl>, qc2_7 <dbl+lbl>, qc4_7 <dbl+lbl>,
#   qc4_8 <dbl+lbl>, qc4_9 <dbl+lbl>, qc4_10 <dbl+lbl>, qc6_1 <dbl>,
#   qc6_2 <dbl>, qc6_10 <dbl>, qc6_11 <dbl>, qc7 <dbl+lbl>, qc9_4 <dbl+lbl>,
#   qc9_5 <dbl+lbl>, qc9_10 <dbl+lbl>, qc9_11 <dbl+lbl>, qc11_6 <dbl+lbl>,
#   qc12_10 <dbl>, qc12_11 <dbl>, qc12_12 <dbl>, qc13_10 <dbl>, qc13_11 <dbl>,
#   qc13_12 <dbl>, qc15_1 <dbl+lbl>, qc15_2 <dbl+lbl>, qc15_3 <dbl+lbl>, …

Just to check if we have the same number of countries and their names in both datasets.

length(unique(second_clean_data$country))
[1] 28
length(unique(merged_data$country))
[1] 28
unique(second_clean_data$country)
 [1] "Belgium"        "Denmark"        "Greece"         "Spain"         
 [5] "Finland"        "France"         "Ireland"        "Italy"         
 [9] "Luxembourg"     "Netherlands"    "Austria"        "Portugal"      
[13] "Sweden"         "Germany"        "United Kingdom" "Bulgaria"      
[17] "Cyprus"         "Czechia"        "Estonia"        "Hungary"       
[21] "Latvia"         "Lithuania"      "Malta"          "Poland"        
[25] "Romania"        "Slovakia"       "Slovenia"       "Croatia"       
unique(merged_data$country)
 [1] "Belgium"        "Denmark"        "Greece"         "Spain"         
 [5] "Finland"        "France"         "Ireland"        "Italy"         
 [9] "Luxembourg"     "Netherlands"    "Austria"        "Portugal"      
[13] "Sweden"         "Germany"        "United Kingdom" "Bulgaria"      
[17] "Cyprus"         "Czechia"        "Estonia"        "Hungary"       
[21] "Latvia"         "Lithuania"      "Malta"          "Poland"        
[25] "Romania"        "Slovakia"       "Slovenia"       "Croatia"       

Prepare the data: NAs, scales, etc

First, we want to see how many NAs we have:

# NAs
na_count <- sapply(merged_data, function(x) sum(is.na(x)))

# NAs percentage: is it low or high
na_percentage <- sapply(merged_data, function(x) mean(is.na(x)) * 100)

na_summary <- data.frame(NA_Count = na_count, NA_Percentage = na_percentage)
print(na_summary)
                                                                       NA_Count
isocntry                                                                      0
country                                                                       0
d8                                                                         2063
d10                                                                           0
d11                                                                           0
d25                                                                          14
d60                                                                         379
sd1_4                                                                       883
sd1_7                                                                      1274
sd1_8                                                                      1626
sd2_5                                                                         0
sd3                                                                         483
qc1_4                                                                      2168
qc2_4                                                                         0
qc2_6                                                                         0
qc2_7                                                                         0
qc4_7                                                                         0
qc4_8                                                                         0
qc4_9                                                                         0
qc4_10                                                                        0
qc6_1                                                                       448
qc6_2                                                                       977
qc6_10                                                                     1886
qc6_11                                                                     2402
qc7                                                                        1936
qc9_4                                                                     14495
qc9_5                                                                     15641
qc9_10                                                                    16379
qc9_11                                                                    16457
qc11_6                                                                     1843
qc12_10                                                                    1326
qc12_11                                                                    2093
qc12_12                                                                    2472
qc13_10                                                                    1433
qc13_11                                                                    2297
qc13_12                                                                    2697
qc15_1                                                                     1446
qc15_2                                                                     1352
qc15_3                                                                     1473
qc17_3                                                                     1534
qc17_4                                                                     1886
qc17_5                                                                     2061
qc18_1                                                                      982
qc18_2                                                                     1038
qc18_3                                                                     1067
qc19                                                                       3280
ranking                                                                       0
Constitution (gender identity)                                                0
Employment (gender identity)                                                  0
Goods & services (gender identity)                                            0
Education (gender identity)                                                   0
Health (gender identity)                                                      0
Conversion practices ban (gender identity)                                    0
Hate crime law (gender identity)                                              0
Hate speech law (gender identity)                                             0
Name change                                                                   0
Self-determination                                                            0
Non-binary recognition                                                        0
No 'Gender Identity Disorder' diagnosis/psychological opinion required        0
No compulsory medical intervention required                                   0
No age restriction                                                            0
No laws limiting freedom of expression (national/local)                       0
country_code                                                               2036
gender_gap_index                                                           2036
eu_unemployment_female                                                     2036
eu_unemployment_male                                                       2036
social_globalisation                                                       2036
religious_importance                                                       4086
fundamental_rights                                                         2036
gdp_per_capita_usd                                                         2036
quality_of_democracy                                                       2036
                                                                       NA_Percentage
isocntry                                                                  0.00000000
country                                                                   0.00000000
d8                                                                        7.51876959
d10                                                                       0.00000000
d11                                                                       0.00000000
d25                                                                       0.05102413
d60                                                                       1.38129601
sd1_4                                                                     3.21816459
sd1_7                                                                     4.64319557
sd1_8                                                                     5.92608791
sd2_5                                                                     0.00000000
sd3                                                                       1.76033239
qc1_4                                                                     7.90145054
qc2_4                                                                     0.00000000
qc2_6                                                                     0.00000000
qc2_7                                                                     0.00000000
qc4_7                                                                     0.00000000
qc4_8                                                                     0.00000000
qc4_9                                                                     0.00000000
qc4_10                                                                    0.00000000
qc6_1                                                                     1.63277207
qc6_2                                                                     3.56075516
qc6_10                                                                    6.87367884
qc6_11                                                                    8.75428238
qc7                                                                       7.05590787
qc9_4                                                                    52.82819447
qc9_5                                                                    57.00488374
qc9_10                                                                   59.69458415
qc9_11                                                                   59.97886143
qc11_6                                                                    6.71696188
qc12_10                                                                   4.83271375
qc12_11                                                                   7.62810700
qc12_12                                                                   9.00940302
qc13_10                                                                   5.22268387
qc13_11                                                                   8.37160143
qc13_12                                                                   9.82943363
qc15_1                                                                    5.27006342
qc15_2                                                                    4.92747285
qc15_3                                                                    5.36846709
qc17_3                                                                    5.59078650
qc17_4                                                                    6.87367884
qc17_5                                                                    7.51148043
qc18_1                                                                    3.57897806
qc18_2                                                                    3.78307457
qc18_3                                                                    3.88876740
qc19                                                                     11.95422407
ranking                                                                   0.00000000
Constitution (gender identity)                                            0.00000000
Employment (gender identity)                                              0.00000000
Goods & services (gender identity)                                        0.00000000
Education (gender identity)                                               0.00000000
Health (gender identity)                                                  0.00000000
Conversion practices ban (gender identity)                                0.00000000
Hate crime law (gender identity)                                          0.00000000
Hate speech law (gender identity)                                         0.00000000
Name change                                                               0.00000000
Self-determination                                                        0.00000000
Non-binary recognition                                                    0.00000000
No 'Gender Identity Disorder' diagnosis/psychological opinion required    0.00000000
No compulsory medical intervention required                               0.00000000
No age restriction                                                        0.00000000
No laws limiting freedom of expression (national/local)                   0.00000000
country_code                                                              7.42036592
gender_gap_index                                                          7.42036592
eu_unemployment_female                                                    7.42036592
eu_unemployment_male                                                      7.42036592
social_globalisation                                                      7.42036592
religious_importance                                                     14.89175596
fundamental_rights                                                        7.42036592
gdp_per_capita_usd                                                        7.42036592
quality_of_democracy                                                      7.42036592

In general we have variables with low levels of NA (generally between 0 and 8%), but there are some exceptions. First, we are surprised that for question QC9 50% are NAs, so we eliminate this variable altogether.

merged_data <- merged_data %>%
  select(-qc9_4, -qc9_5, -qc9_10, -qc9_11)

Now we want to impute those variables with more than 8% of NAs.

Since individual and aggregate variables have different distributions or represent different levels of information, it’s best to first test which imputation method is best for the individual variables and which for the aggregate variables.

For the individual level we choose the method that best fits the original distribution (between Random Forest, Lasso and Cart):

library(mice)

Adjuntando el paquete: 'mice'
The following object is masked from 'package:stats':

    filter
The following objects are masked from 'package:base':

    cbind, rbind
library(ggplot2)

selected_vars <- c("qc12_12", "qc6_11")

# Imputation methods
methods <- c("lasso.norm", "rf", "cart")  

# Apply them
imputations <- lapply(methods, function(m) {
  complete(mice(merged_data[selected_vars], m=5, method=m, seed=123))$qc12_12
})

 iter imp variable
  1   1  qc12_12  qc6_11
  1   2  qc12_12  qc6_11
  1   3  qc12_12  qc6_11
  1   4  qc12_12  qc6_11
  1   5  qc12_12  qc6_11
  2   1  qc12_12  qc6_11
  2   2  qc12_12  qc6_11
  2   3  qc12_12  qc6_11
  2   4  qc12_12  qc6_11
  2   5  qc12_12  qc6_11
  3   1  qc12_12  qc6_11
  3   2  qc12_12  qc6_11
  3   3  qc12_12  qc6_11
  3   4  qc12_12  qc6_11
  3   5  qc12_12  qc6_11
  4   1  qc12_12  qc6_11
  4   2  qc12_12  qc6_11
  4   3  qc12_12  qc6_11
  4   4  qc12_12  qc6_11
  4   5  qc12_12  qc6_11
  5   1  qc12_12  qc6_11
  5   2  qc12_12  qc6_11
  5   3  qc12_12  qc6_11
  5   4  qc12_12  qc6_11
  5   5  qc12_12  qc6_11

 iter imp variable
  1   1  qc12_12  qc6_11
  1   2  qc12_12  qc6_11
  1   3  qc12_12  qc6_11
  1   4  qc12_12  qc6_11
  1   5  qc12_12  qc6_11
  2   1  qc12_12  qc6_11
  2   2  qc12_12  qc6_11
  2   3  qc12_12  qc6_11
  2   4  qc12_12  qc6_11
  2   5  qc12_12  qc6_11
  3   1  qc12_12  qc6_11
  3   2  qc12_12  qc6_11
  3   3  qc12_12  qc6_11
  3   4  qc12_12  qc6_11
  3   5  qc12_12  qc6_11
  4   1  qc12_12  qc6_11
  4   2  qc12_12  qc6_11
  4   3  qc12_12  qc6_11
  4   4  qc12_12  qc6_11
  4   5  qc12_12  qc6_11
  5   1  qc12_12  qc6_11
  5   2  qc12_12  qc6_11
  5   3  qc12_12  qc6_11
  5   4  qc12_12  qc6_11
  5   5  qc12_12  qc6_11

 iter imp variable
  1   1  qc12_12  qc6_11
  1   2  qc12_12  qc6_11
  1   3  qc12_12  qc6_11
  1   4  qc12_12  qc6_11
  1   5  qc12_12  qc6_11
  2   1  qc12_12  qc6_11
  2   2  qc12_12  qc6_11
  2   3  qc12_12  qc6_11
  2   4  qc12_12  qc6_11
  2   5  qc12_12  qc6_11
  3   1  qc12_12  qc6_11
  3   2  qc12_12  qc6_11
  3   3  qc12_12  qc6_11
  3   4  qc12_12  qc6_11
  3   5  qc12_12  qc6_11
  4   1  qc12_12  qc6_11
  4   2  qc12_12  qc6_11
  4   3  qc12_12  qc6_11
  4   4  qc12_12  qc6_11
  4   5  qc12_12  qc6_11
  5   1  qc12_12  qc6_11
  5   2  qc12_12  qc6_11
  5   3  qc12_12  qc6_11
  5   4  qc12_12  qc6_11
  5   5  qc12_12  qc6_11
# Dataframe with original and imputated values
mice_imputed <- data.frame(
  original = merged_data$qc6_11,
  imputed_lasso = imputations[[1]],
  imputed_rf = imputations[[2]],
  imputed_cart = imputations[[3]]
)

# We visualize it in a plot
variables <- c("original", "imputed_lasso", "imputed_rf", "imputed_cart")
titles <- c("Original", "LASSO Imputed", "Random Forest Imputed", "CART Imputed")
colors_fill <- c("skyblue", "#15ad4f", "#6a6ad9", "#e65100")

mice_imputed_long <- mice_imputed %>%
  pivot_longer(all_of(variables), names_to = "method", values_to = "value")

# Graph
plots <- ggplot(mice_imputed_long, aes(x = value, fill = method)) +
  geom_histogram(binwidth = 1, color = "gray30", position = "identity", alpha = 0.6) +
  facet_wrap(~method, scales = "free_y", labeller = labeller(method = setNames(titles, variables))) +
  scale_fill_manual(values = colors_fill) +
  theme_classic() +
  theme(legend.position = "none")

# Show the graph
print(plots)
Warning: Removed 2402 rows containing non-finite outside the scale range
(`stat_bin()`).

We don’t see any major differences between the three types of imputation methods, since the estimates for all three are similar and differ in the same way from the original distribution. To decide on a method, we’ll first look at which method is most appropriate for the remaining (country-level) variables:

selected_vars <- c("religious_importance", "quality_of_democracy")

# Apply imputation
imputations <- lapply(methods, function(m) {
  complete(mice(merged_data[selected_vars], m=5, method=m, seed=123))$religious_importance
})

 iter imp variable
  1   1  religious_importance  quality_of_democracy
  1   2  religious_importance  quality_of_democracy
  1   3  religious_importance  quality_of_democracy
  1   4  religious_importance  quality_of_democracy
  1   5  religious_importance  quality_of_democracy
  2   1  religious_importance  quality_of_democracy
  2   2  religious_importance  quality_of_democracy
  2   3  religious_importance  quality_of_democracy
  2   4  religious_importance  quality_of_democracy
  2   5  religious_importance  quality_of_democracy
  3   1  religious_importance  quality_of_democracy
  3   2  religious_importance  quality_of_democracy
  3   3  religious_importance  quality_of_democracy
  3   4  religious_importance  quality_of_democracy
  3   5  religious_importance  quality_of_democracy
  4   1  religious_importance  quality_of_democracy
  4   2  religious_importance  quality_of_democracy
  4   3  religious_importance  quality_of_democracy
  4   4  religious_importance  quality_of_democracy
  4   5  religious_importance  quality_of_democracy
  5   1  religious_importance  quality_of_democracy
  5   2  religious_importance  quality_of_democracy
  5   3  religious_importance  quality_of_democracy
  5   4  religious_importance  quality_of_democracy
  5   5  religious_importance  quality_of_democracy

 iter imp variable
  1   1  religious_importance  quality_of_democracy
  1   2  religious_importance  quality_of_democracy
  1   3  religious_importance  quality_of_democracy
  1   4  religious_importance  quality_of_democracy
  1   5  religious_importance  quality_of_democracy
  2   1  religious_importance  quality_of_democracy
  2   2  religious_importance  quality_of_democracy
  2   3  religious_importance  quality_of_democracy
  2   4  religious_importance  quality_of_democracy
  2   5  religious_importance  quality_of_democracy
  3   1  religious_importance  quality_of_democracy
  3   2  religious_importance  quality_of_democracy
  3   3  religious_importance  quality_of_democracy
  3   4  religious_importance  quality_of_democracy
  3   5  religious_importance  quality_of_democracy
  4   1  religious_importance  quality_of_democracy
  4   2  religious_importance  quality_of_democracy
  4   3  religious_importance  quality_of_democracy
  4   4  religious_importance  quality_of_democracy
  4   5  religious_importance  quality_of_democracy
  5   1  religious_importance  quality_of_democracy
  5   2  religious_importance  quality_of_democracy
  5   3  religious_importance  quality_of_democracy
  5   4  religious_importance  quality_of_democracy
  5   5  religious_importance  quality_of_democracy

 iter imp variable
  1   1  religious_importance  quality_of_democracy
  1   2  religious_importance  quality_of_democracy
  1   3  religious_importance  quality_of_democracy
  1   4  religious_importance  quality_of_democracy
  1   5  religious_importance  quality_of_democracy
  2   1  religious_importance  quality_of_democracy
  2   2  religious_importance  quality_of_democracy
  2   3  religious_importance  quality_of_democracy
  2   4  religious_importance  quality_of_democracy
  2   5  religious_importance  quality_of_democracy
  3   1  religious_importance  quality_of_democracy
  3   2  religious_importance  quality_of_democracy
  3   3  religious_importance  quality_of_democracy
  3   4  religious_importance  quality_of_democracy
  3   5  religious_importance  quality_of_democracy
  4   1  religious_importance  quality_of_democracy
  4   2  religious_importance  quality_of_democracy
  4   3  religious_importance  quality_of_democracy
  4   4  religious_importance  quality_of_democracy
  4   5  religious_importance  quality_of_democracy
  5   1  religious_importance  quality_of_democracy
  5   2  religious_importance  quality_of_democracy
  5   3  religious_importance  quality_of_democracy
  5   4  religious_importance  quality_of_democracy
  5   5  religious_importance  quality_of_democracy
# Create dataframe con original and imputed values
mice_imputed <- data.frame(
  original = merged_data$religious_importance,
  imputed_lasso = imputations[[1]],
  imputed_rf = imputations[[2]],
  imputed_cart = imputations[[3]]
)

# Variables to plot
variables <- c("original", "imputed_lasso", "imputed_rf", "imputed_cart")
titles <- c("Original", "LASSO Imputed", "Random Forest Imputed", "CART Imputed")
colors_fill <- c("skyblue", "#15ad4f", "#6a6ad9", "#e65100")

# Transform data to long format for ggplot
mice_imputed_long <- mice_imputed %>%
  pivot_longer(all_of(variables), names_to = "method", values_to = "value")

# Create distribution chart
plots <- ggplot(mice_imputed_long, aes(x = value, fill = method)) +
  geom_histogram(binwidth = 1, color = "gray30", position = "identity", alpha = 0.6) +
  facet_wrap(~method, scales = "free_y", labeller = labeller(method = setNames(titles, variables))) +
  scale_fill_manual(values = colors_fill) +
  theme_classic() +
  theme(legend.position = "none")

# Show the plot
print(plots)
Warning: Removed 4086 rows containing non-finite outside the scale range
(`stat_bin()`).

Based on these observations, LASSO in an excellent choice for the imputation in country-level variables. Random Forest and Cart, on the other hand, are shifted to the left and are not as good. Lasso is the closest to the original distribution so we use it. And since we had some doubts about which method to choose for the variables at an individual level, we decided to also choose Lasso and apply it to everything.

We apply the imputation to the variables that need it:

((Although our dependent variable has 11% NAs, we are not going to impute it since there is a lot of discussion in the literature about applying it or not so for now we keep it as the original))

#Variables that we want to impute
library (mice)
selected_vars <- c("qc6_11", "qc12_12", "qc13_11", "qc13_12", 
                   names(merged_data)[which(names(merged_data) == "gender_gap_index"):
                                      which(names(merged_data) == "quality_of_democracy")])

# Apply RF
m <- 4  
mice_mod <- mice(merged_data[selected_vars], m=m, method='lasso.norm', seed=123)

 iter imp variable
  1   1  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  1   2  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  1   3  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  1   4  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  2   1  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  2   2  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  2   3  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  2   4  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  3   1  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  3   2  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  3   3  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  3   4  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  4   1  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  4   2  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  4   3  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  4   4  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  5   1  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  5   2  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  5   3  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
  5   4  qc6_11  qc12_12  qc13_11  qc13_12  gender_gap_index  eu_unemployment_female  eu_unemployment_male  social_globalisation  religious_importance  fundamental_rights  gdp_per_capita_usd  quality_of_democracy
merged_data[selected_vars] <- complete(mice_mod, action=m)

Descriptive analysis

We want to see the distribution of the dependent variable across countries:

table(merged_data$qc19)

    1     2 
14463  9695 
#0 for No and 1 for Yes
merged_data$qc19 <- ifelse(merged_data$qc19 == 2, 0, merged_data$qc19)
merged_data$qc19_label <- factor(merged_data$qc19, levels = c(0, 1), labels = c("No", "Yes"))

qc19_percentages <- merged_data %>%
  group_by(isocntry, qc19_label) %>%
  summarise(count = n()) %>%
  group_by(isocntry) %>%
  mutate(percentage = count / sum(count) * 100)
`summarise()` has grouped output by 'isocntry'. You can override using the
`.groups` argument.
# Plot

ggplot(qc19_percentages, aes(x = factor(isocntry), y = percentage, fill = qc19_label)) +
  geom_bar(stat = "identity", position = "stack", color = "gray90") + 
  scale_fill_manual(values = c("No" = "red", "Yes" = "#15ad4f")) +
  labs(
    title = "Support for Gender Identity Change in Civil Documents",
    subtitle = "Percentage of 'Yes' and 'No' Responses by Country",
    fill = "Responses",
    x = "Country", 
    y = "Percentage"
  ) +
  theme_minimal() +
  theme(
    axis.text.x = element_text(angle = 45, hjust = 1, size = 10),
    panel.grid.major = element_blank(),
    panel.grid.minor = element_blank(),
    panel.background = element_rect(fill = "white", color = NA), 
    plot.title = element_text(size = 16, face = "bold"),
    plot.subtitle = element_text(size = 12, hjust = 0.5, color = "gray25"),
    legend.position = "right"
  )

This stacked bar chart illustrates the distribution of opinions regarding gender identity change in civil documents across various countries, categorizing responses as “Yes” (for), “No” (against), and “NA” (not available). The visualization allows for cross-country comparisons, highlighting variations in support levels, opposition, and the extent of missing opinion data. Notably, Spain, the Netherlands, Malta or France display very strong support for gender identity change. On the other hand, Hungary, Romania or Slovakia show a bigger percentage of “no”. Analyzing these trends could reveal potential correlations with regional dynamics or socioeconomic factors influencing public sentiment on this issue.

Plot for the distribution of the dependent variable across European countries

# Filter for "Yes" responses and select the relevant columns
yes_percentages <- qc19_percentages %>%
  filter(qc19_label == "Yes") %>%
  select(isocntry, percentage)

# Now yes_percentages contains the country and the percentage of "Yes" responses
print(yes_percentages)
# A tibble: 28 × 2
# Groups:   isocntry [28]
   isocntry percentage
   <chr>         <dbl>
 1 AT             57.4
 2 BE             71.8
 3 BG             11.9
 4 CY             42.7
 5 CZ             40.8
 6 DE             68.6
 7 DK             73.8
 8 EE             49.1
 9 ES             82.8
10 FI             62.5
# ℹ 18 more rows
# Define the mapping table
country_name_map <- data.frame(
  isocntry = c("AT", "BE", "BG", "HR", "DK", "FI", "FR", "DE", "GR", "HU", "IE", "IT", "NL", "PL", "PT", "ES", "SE", "GB", "CZ", "RO", "SK", "LT", "LV", "EE", "SI", "CY", "LU", "MT"), # ISO codes
  map_name = c(
    "Austria", "Belgium", "Bulgaria", "Croatia", "Denmark", "Finland",
    "France", "Germany", "Greece", "Hungary", "Ireland", "Italy",
    "Netherlands", "Poland", "Portugal", "Spain", "Sweden", "UK",
    "Czech Republic", "Romania", "Slovakia", "Lithuania", "Latvia", "Estonia",
    "Slovenia", "Cyprus", "Luxembourg", "Malta"
  )
)
library(dplyr)
library(ggplot2)
library(mapdata)
Warning: package 'mapdata' was built under R version 4.4.3
Cargando paquete requerido: maps

Adjuntando el paquete: 'maps'
The following object is masked from 'package:purrr':

    map
# Get the map data for Europe
europe_map <- map_data("world", region = unique(country_name_map$map_name))

# Merge the map data with the mapping table
europe_data <- europe_map %>%
  left_join(country_name_map, by = c("region" = "map_name")) %>%
  left_join(yes_percentages, by = "isocntry")

# Inspect the result
head(europe_data)
      long      lat group order  region     subregion isocntry percentage
1 20.61133 60.04068     1     1 Finland Aland Islands       FI   62.51246
2 20.60342 60.01694     1     2 Finland Aland Islands       FI   62.51246
3 20.52178 60.01167     1     3 Finland Aland Islands       FI   62.51246
4 20.48750 60.03276     1     4 Finland Aland Islands       FI   62.51246
5 20.41123 60.03013     1     5 Finland Aland Islands       FI   62.51246
6 20.39795 60.04068     1     6 Finland Aland Islands       FI   62.51246
ggplot(data = europe_data) +
  geom_polygon(aes(x = long, y = lat, group = group, fill = percentage), 
               color = "gray90", linewidth = 0.1) +  # Lighter country borders
  scale_fill_viridis_c(
    option = "viridis", direction = -1,  # Choose a different palette
    name = "Support (%)",  
    na.value = "lightgray"  # Color for missing values
  ) +
  labs(
    title = "Support for Gender Identity Change\nin Civil Documents",
    subtitle = "Percentage of 'Yes' responses by Country"
  ) +
  coord_quickmap() +  # Maintain aspect ratio for maps
  theme_minimal() +
  theme(
    legend.position = "right",
    panel.background = element_rect(fill = "white"),  # Clean white background
    panel.grid.major = element_blank(),  # Remove major grid lines
    panel.grid.minor = element_blank(),  # Remove minor grid lines
    plot.title = element_text(size = 16, face = "bold", hjust = 0.3),  # Customize title
    plot.subtitle = element_text(size = 12, hjust = 0.5, color = "gray25"),  # Customize subtitle
    legend.title = element_text(size = 10),  # Customize legend title
    axis.title.x = element_blank(),  # Remove x-axis label
    axis.title.y = element_blank(),  # Remove y-axis label
    axis.text.x = element_blank(),  # Remove x-axis text (numbers)
    axis.text.y = element_blank()  # Remove y-axis text (numbers)
  )

This map visualizes the level of support for gender identity change in civil documents across Europe, using color intensity to represent the percentage of “Yes” responses by country. Darker shades of purple and blue indicate higher support (60-80%), prevalent in Western and Northern Europe, while lighter shades of green and yellow, indicating lower support (20-40%), are concentrated in Eastern and Southeastern Europe. This geographical pattern suggests potential regional disparities in societal attitudes towards gender identity, possibly influenced by cultural, historical, or political factors.

Map in plotly

library(plotly)

Adjuntando el paquete: 'plotly'
The following object is masked from 'package:ggplot2':

    last_plot
The following object is masked from 'package:stats':

    filter
The following object is masked from 'package:graphics':

    layout
library(dplyr)

# Summarize the data for Plotly
europe_data_summary <- europe_data %>%
  group_by(region) %>%
  summarize(
    percentage = mean(percentage, na.rm = TRUE),  # Calculate mean percentage
    lat = mean(lat, na.rm = TRUE),  # Center latitude for each country
    long = mean(long, na.rm = TRUE)  # Center longitude for each country
  )

# Create the Plotly map
plot_ly(
  data = europe_data_summary,
  type = "choropleth",
  locations = ~region,  # Country names
  locationmode = "country names",  # Use country names for mapping
  z = ~percentage,  # Values to color by
  colorscale = "Viridis",  # Use the Viridis color palette
  reversescale = TRUE,  # Reverse the color scale
  colorbar = list(title = "Percentage of respondents supporting \ngender identity change"),
  hoverinfo = "text",
  text = ~paste(region, "<br>Percentage:", round(percentage, 2), "%")  # Hover text
) %>%
  layout(
    title = list(
      text = "Support for Gender Identity Change in Civil Documents",
      x = 0.5,  # Center the title
      font = list(size = 16, face = "bold")
    ),
    geo = list(
      scope = "europe",  # Focus on Europe
      showframe = FALSE,  # Hide the map frame
      showcoastlines = TRUE,  # Show coastlines
      projection = list(type = "mercator")  # Use Mercator projection
    ),
    margin = list(l = 0, r = 0, t = 50, b = 0)  # Adjust margins
  )

Recreating this map in Plotly and making it interactive would significantly enhance its utility and user engagement. By transforming the static map into an interactive visualization, viewers can check individual countries to see the exact percentage of support for gender identity change, rather than relying solely on broad color categories. This interactive map not only makes the data more accessible and engaging but also empowers users to explore the information in a personalized and informative manner with the proper percentage.

First analysis: Explaining Cross-Country Differences in Support Levels

Select relevant variables

We are going to use Random Forest to select the most relevant variables:

With RF, subsets of variables are randomly selected in each tree, reducing the impact of collinearity and thus evaluating the importance of each variable, discarding the least relevant ones.

library(randomForest)
randomForest 4.7-1.2
Type rfNews() to see new features/changes/bug fixes.

Adjuntando el paquete: 'randomForest'
The following object is masked from 'package:ggplot2':

    margin
The following object is masked from 'package:dplyr':

    combine
# Convert qc19 into factor so Random Forest can treat it as a categorical variable

merged_data$qc19 <- factor(merged_data$qc19)

# Use Random Forest to select relevant variables Usar 
colnames(merged_data) <- make.names(colnames(merged_data))
rf_model <- randomForest(qc19 ~ ., data = merged_data, importance = TRUE, na.action = na.omit)

# See the most important variables
importance(rf_model)
                                                                                 0
isocntry                                                                 8.9638084
country                                                                  9.6921852
d8                                                                       8.5079906
d10                                                                      1.8767478
d11                                                                      2.2349620
d25                                                                      5.1915861
d60                                                                      4.4488195
sd1_4                                                                    9.7436579
sd1_7                                                                    7.1678617
sd1_8                                                                    6.1955070
sd2_5                                                                    0.5851756
sd3                                                                     11.6894280
qc1_4                                                                    4.4847382
qc2_4                                                                    0.6621944
qc2_6                                                                   -0.1170872
qc2_7                                                                    0.3836750
qc4_7                                                                    2.5090630
qc4_8                                                                    6.5752194
qc4_9                                                                    3.6886529
qc4_10                                                                   4.4562287
qc6_1                                                                    8.2391112
qc6_2                                                                   11.2223061
qc6_10                                                                  11.1388385
qc6_11                                                                  12.3900161
qc7                                                                      6.2373704
qc11_6                                                                   7.4297803
qc12_10                                                                 12.7596506
qc12_11                                                                 11.6773410
qc12_12                                                                 12.8852218
qc13_10                                                                  9.2856213
qc13_11                                                                 12.0006194
qc13_12                                                                 12.6417678
qc15_1                                                                  15.6167823
qc15_2                                                                  15.1099605
qc15_3                                                                  14.5573628
qc17_3                                                                  12.7028462
qc17_4                                                                  11.1629710
qc17_5                                                                  12.6330999
qc18_1                                                                   2.8621953
qc18_2                                                                   9.2448978
qc18_3                                                                  12.0798695
ranking                                                                  9.4803728
Constitution..gender.identity.                                           1.2233393
Employment..gender.identity.                                             2.6417892
Goods...services..gender.identity.                                       3.7407015
Education..gender.identity.                                              2.9115158
Health..gender.identity.                                                 5.1960626
Conversion.practices.ban..gender.identity.                               7.0195551
Hate.crime.law..gender.identity.                                         4.1084413
Hate.speech.law..gender.identity.                                        4.0710277
Name.change                                                              8.6965909
Self.determination                                                       5.8751267
Non.binary.recognition                                                   1.3718720
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required   5.4310578
No.compulsory.medical.intervention.required                              8.8992676
No.age.restriction                                                       4.0979071
No.laws.limiting.freedom.of.expression..national.local.                  0.9163621
country_code                                                             8.8844668
gender_gap_index                                                         9.2655746
eu_unemployment_female                                                   7.7638714
eu_unemployment_male                                                     8.2786973
social_globalisation                                                    11.6168574
religious_importance                                                     8.4469005
fundamental_rights                                                      11.9768745
gdp_per_capita_usd                                                      10.6248418
quality_of_democracy                                                    11.6942261
qc19_label                                                             138.1524603
                                                                                 1
isocntry                                                                 8.8452385
country                                                                  9.2212048
d8                                                                       6.2645210
d10                                                                      0.7589882
d11                                                                      8.1631621
d25                                                                      6.8575800
d60                                                                      4.3768221
sd1_4                                                                    7.7456851
sd1_7                                                                    1.5964670
sd1_8                                                                    1.3657595
sd2_5                                                                    0.8122223
sd3                                                                      6.4720655
qc1_4                                                                    6.4788497
qc2_4                                                                    0.9551748
qc2_6                                                                    1.1381463
qc2_7                                                                    1.9780775
qc4_7                                                                    0.9269806
qc4_8                                                                    4.5881889
qc4_9                                                                    1.5800330
qc4_10                                                                   2.7739704
qc6_1                                                                    8.2565832
qc6_2                                                                   11.0012918
qc6_10                                                                  13.6140407
qc6_11                                                                  11.8449738
qc7                                                                      7.7849454
qc11_6                                                                   5.6766430
qc12_10                                                                 11.1075280
qc12_11                                                                 15.0345698
qc12_12                                                                 13.0924527
qc13_10                                                                 10.9711698
qc13_11                                                                 12.5172526
qc13_12                                                                 11.3812814
qc15_1                                                                  14.5698780
qc15_2                                                                  13.2515452
qc15_3                                                                  14.7139257
qc17_3                                                                  12.5782832
qc17_4                                                                  14.9038195
qc17_5                                                                  14.8111373
qc18_1                                                                   8.5894625
qc18_2                                                                  14.1292555
qc18_3                                                                   9.4161723
ranking                                                                  7.6825030
Constitution..gender.identity.                                           3.3468895
Employment..gender.identity.                                             3.4997698
Goods...services..gender.identity.                                       4.5715746
Education..gender.identity.                                              4.8945973
Health..gender.identity.                                                 3.7939571
Conversion.practices.ban..gender.identity.                               7.6605271
Hate.crime.law..gender.identity.                                         4.3522809
Hate.speech.law..gender.identity.                                        5.7719358
Name.change                                                              5.1254722
Self.determination                                                       3.5459531
Non.binary.recognition                                                   1.2685004
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required   6.3960130
No.compulsory.medical.intervention.required                              9.6250558
No.age.restriction                                                       3.2252492
No.laws.limiting.freedom.of.expression..national.local.                  4.1829586
country_code                                                             9.0807183
gender_gap_index                                                         7.5586782
eu_unemployment_female                                                   8.8659992
eu_unemployment_male                                                     8.9535001
social_globalisation                                                     7.6365711
religious_importance                                                     7.5160041
fundamental_rights                                                       8.3532057
gdp_per_capita_usd                                                       8.1875647
quality_of_democracy                                                     8.7150932
qc19_label                                                             134.6092598
                                                                       MeanDecreaseAccuracy
isocntry                                                                         11.8074637
country                                                                          12.3877645
d8                                                                               10.5853110
d10                                                                               1.8481273
d11                                                                               7.5676728
d25                                                                               8.3891885
d60                                                                               6.1696432
sd1_4                                                                            10.4292860
sd1_7                                                                             7.3592105
sd1_8                                                                             5.8900279
sd2_5                                                                             0.9964942
sd3                                                                              12.0096958
qc1_4                                                                             7.9164665
qc2_4                                                                             1.1473039
qc2_6                                                                             0.6857039
qc2_7                                                                             1.8871085
qc4_7                                                                             2.3223282
qc4_8                                                                             8.5552258
qc4_9                                                                             3.9237117
qc4_10                                                                            5.2431073
qc6_1                                                                            11.3810541
qc6_2                                                                            13.3923889
qc6_10                                                                           15.3518806
qc6_11                                                                           14.7848196
qc7                                                                               9.5930383
qc11_6                                                                            9.2638491
qc12_10                                                                          14.4367170
qc12_11                                                                          16.2915063
qc12_12                                                                          16.6547935
qc13_10                                                                          12.4435599
qc13_11                                                                          15.9647165
qc13_12                                                                          15.4463326
qc15_1                                                                           18.7766819
qc15_2                                                                           16.9212904
qc15_3                                                                           18.3031711
qc17_3                                                                           15.8278500
qc17_4                                                                           16.3416058
qc17_5                                                                           17.3705587
qc18_1                                                                            8.8161638
qc18_2                                                                           14.4007798
qc18_3                                                                           12.6459448
ranking                                                                          10.4929909
Constitution..gender.identity.                                                    2.9364975
Employment..gender.identity.                                                      3.8932522
Goods...services..gender.identity.                                                5.3281951
Education..gender.identity.                                                       5.3698390
Health..gender.identity.                                                          6.1650734
Conversion.practices.ban..gender.identity.                                        9.2530000
Hate.crime.law..gender.identity.                                                  5.5744725
Hate.speech.law..gender.identity.                                                 6.2711667
Name.change                                                                       7.7309905
Self.determination                                                                6.0143461
Non.binary.recognition                                                            1.6210773
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required            7.2005731
No.compulsory.medical.intervention.required                                      11.3581094
No.age.restriction                                                                4.5814640
No.laws.limiting.freedom.of.expression..national.local.                           3.8042537
country_code                                                                     11.9948064
gender_gap_index                                                                 10.2887537
eu_unemployment_female                                                           11.3317931
eu_unemployment_male                                                             10.7321846
social_globalisation                                                             12.0393316
religious_importance                                                             10.5467341
fundamental_rights                                                               13.4087823
gdp_per_capita_usd                                                               11.4853172
quality_of_democracy                                                             13.1386453
qc19_label                                                                      147.3526392
                                                                       MeanDecreaseGini
isocntry                                                                     19.0515391
country                                                                      17.2794733
d8                                                                           43.9947406
d10                                                                          12.8383886
d11                                                                          59.4415015
d25                                                                          21.0096313
d60                                                                          14.9559008
sd1_4                                                                        32.1089488
sd1_7                                                                         5.6560669
sd1_8                                                                         4.9048061
sd2_5                                                                         1.5364715
sd3                                                                          23.1382619
qc1_4                                                                        25.1326289
qc2_4                                                                         1.2311808
qc2_6                                                                         1.1717483
qc2_7                                                                         0.6571858
qc4_7                                                                        10.0271135
qc4_8                                                                        10.1122807
qc4_9                                                                         8.6838759
qc4_10                                                                        8.8356302
qc6_1                                                                        28.3742695
qc6_2                                                                        92.6932935
qc6_10                                                                       54.9183529
qc6_11                                                                       71.1941945
qc7                                                                          42.5239578
qc11_6                                                                       26.6641138
qc12_10                                                                     138.4255409
qc12_11                                                                     134.1719739
qc12_12                                                                      96.3290986
qc13_10                                                                      50.3809706
qc13_11                                                                      40.1774477
qc13_12                                                                      37.5993112
qc15_1                                                                      203.0977738
qc15_2                                                                      186.4169848
qc15_3                                                                      251.2058185
qc17_3                                                                       71.7537562
qc17_4                                                                       80.6023619
qc17_5                                                                      102.8786640
qc18_1                                                                       31.7541216
qc18_2                                                                      102.6152690
qc18_3                                                                       81.9000316
ranking                                                                      66.8999706
Constitution..gender.identity.                                                2.2721426
Employment..gender.identity.                                                  3.1101467
Goods...services..gender.identity.                                            4.3098416
Education..gender.identity.                                                   4.5083700
Health..gender.identity.                                                      3.6207560
Conversion.practices.ban..gender.identity.                                   12.3953510
Hate.crime.law..gender.identity.                                              4.5928985
Hate.speech.law..gender.identity.                                             3.6785827
Name.change                                                                  29.3858647
Self.determination                                                            5.0599184
Non.binary.recognition                                                        0.9896623
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required       10.9788181
No.compulsory.medical.intervention.required                                  44.0908615
No.age.restriction                                                            3.6244871
No.laws.limiting.freedom.of.expression..national.local.                       2.8151224
country_code                                                                 18.0431446
gender_gap_index                                                             26.6925580
eu_unemployment_female                                                       17.5480566
eu_unemployment_male                                                         16.5163651
social_globalisation                                                         35.7006846
religious_importance                                                         21.7073662
fundamental_rights                                                           39.0981229
gdp_per_capita_usd                                                           54.2521526
quality_of_democracy                                                         50.2035317
qc19_label                                                                 3907.9597532

The higher the value of MeanDecreaseAccuracy, the more important the variable is. The higher the value of MeanDecreaseGini, the more useful the variable is for making splits in the trees of the Random Forest model.

# Get the importance of the variables
var_imp <- importance(rf_model)

# Convert to data frame and sort by MeanDecreaseAccuracy from largest to smallest
var_imp_df <- as.data.frame(var_imp) %>%
  arrange(desc(MeanDecreaseAccuracy))

# See the firts rows
var_imp_df
                                                                                 0
qc19_label                                                             138.1524603
qc15_1                                                                  15.6167823
qc15_3                                                                  14.5573628
qc17_5                                                                  12.6330999
qc15_2                                                                  15.1099605
qc12_12                                                                 12.8852218
qc17_4                                                                  11.1629710
qc12_11                                                                 11.6773410
qc13_11                                                                 12.0006194
qc17_3                                                                  12.7028462
qc13_12                                                                 12.6417678
qc6_10                                                                  11.1388385
qc6_11                                                                  12.3900161
qc12_10                                                                 12.7596506
qc18_2                                                                   9.2448978
fundamental_rights                                                      11.9768745
qc6_2                                                                   11.2223061
quality_of_democracy                                                    11.6942261
qc18_3                                                                  12.0798695
qc13_10                                                                  9.2856213
country                                                                  9.6921852
social_globalisation                                                    11.6168574
sd3                                                                     11.6894280
country_code                                                             8.8844668
isocntry                                                                 8.9638084
gdp_per_capita_usd                                                      10.6248418
qc6_1                                                                    8.2391112
No.compulsory.medical.intervention.required                              8.8992676
eu_unemployment_female                                                   7.7638714
eu_unemployment_male                                                     8.2786973
d8                                                                       8.5079906
religious_importance                                                     8.4469005
ranking                                                                  9.4803728
sd1_4                                                                    9.7436579
gender_gap_index                                                         9.2655746
qc7                                                                      6.2373704
qc11_6                                                                   7.4297803
Conversion.practices.ban..gender.identity.                               7.0195551
qc18_1                                                                   2.8621953
qc4_8                                                                    6.5752194
d25                                                                      5.1915861
qc1_4                                                                    4.4847382
Name.change                                                              8.6965909
d11                                                                      2.2349620
sd1_7                                                                    7.1678617
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required   5.4310578
Hate.speech.law..gender.identity.                                        4.0710277
d60                                                                      4.4488195
Health..gender.identity.                                                 5.1960626
Self.determination                                                       5.8751267
sd1_8                                                                    6.1955070
Hate.crime.law..gender.identity.                                         4.1084413
Education..gender.identity.                                              2.9115158
Goods...services..gender.identity.                                       3.7407015
qc4_10                                                                   4.4562287
No.age.restriction                                                       4.0979071
qc4_9                                                                    3.6886529
Employment..gender.identity.                                             2.6417892
No.laws.limiting.freedom.of.expression..national.local.                  0.9163621
Constitution..gender.identity.                                           1.2233393
qc4_7                                                                    2.5090630
qc2_7                                                                    0.3836750
d10                                                                      1.8767478
Non.binary.recognition                                                   1.3718720
qc2_4                                                                    0.6621944
sd2_5                                                                    0.5851756
qc2_6                                                                   -0.1170872
                                                                                 1
qc19_label                                                             134.6092598
qc15_1                                                                  14.5698780
qc15_3                                                                  14.7139257
qc17_5                                                                  14.8111373
qc15_2                                                                  13.2515452
qc12_12                                                                 13.0924527
qc17_4                                                                  14.9038195
qc12_11                                                                 15.0345698
qc13_11                                                                 12.5172526
qc17_3                                                                  12.5782832
qc13_12                                                                 11.3812814
qc6_10                                                                  13.6140407
qc6_11                                                                  11.8449738
qc12_10                                                                 11.1075280
qc18_2                                                                  14.1292555
fundamental_rights                                                       8.3532057
qc6_2                                                                   11.0012918
quality_of_democracy                                                     8.7150932
qc18_3                                                                   9.4161723
qc13_10                                                                 10.9711698
country                                                                  9.2212048
social_globalisation                                                     7.6365711
sd3                                                                      6.4720655
country_code                                                             9.0807183
isocntry                                                                 8.8452385
gdp_per_capita_usd                                                       8.1875647
qc6_1                                                                    8.2565832
No.compulsory.medical.intervention.required                              9.6250558
eu_unemployment_female                                                   8.8659992
eu_unemployment_male                                                     8.9535001
d8                                                                       6.2645210
religious_importance                                                     7.5160041
ranking                                                                  7.6825030
sd1_4                                                                    7.7456851
gender_gap_index                                                         7.5586782
qc7                                                                      7.7849454
qc11_6                                                                   5.6766430
Conversion.practices.ban..gender.identity.                               7.6605271
qc18_1                                                                   8.5894625
qc4_8                                                                    4.5881889
d25                                                                      6.8575800
qc1_4                                                                    6.4788497
Name.change                                                              5.1254722
d11                                                                      8.1631621
sd1_7                                                                    1.5964670
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required   6.3960130
Hate.speech.law..gender.identity.                                        5.7719358
d60                                                                      4.3768221
Health..gender.identity.                                                 3.7939571
Self.determination                                                       3.5459531
sd1_8                                                                    1.3657595
Hate.crime.law..gender.identity.                                         4.3522809
Education..gender.identity.                                              4.8945973
Goods...services..gender.identity.                                       4.5715746
qc4_10                                                                   2.7739704
No.age.restriction                                                       3.2252492
qc4_9                                                                    1.5800330
Employment..gender.identity.                                             3.4997698
No.laws.limiting.freedom.of.expression..national.local.                  4.1829586
Constitution..gender.identity.                                           3.3468895
qc4_7                                                                    0.9269806
qc2_7                                                                    1.9780775
d10                                                                      0.7589882
Non.binary.recognition                                                   1.2685004
qc2_4                                                                    0.9551748
sd2_5                                                                    0.8122223
qc2_6                                                                    1.1381463
                                                                       MeanDecreaseAccuracy
qc19_label                                                                      147.3526392
qc15_1                                                                           18.7766819
qc15_3                                                                           18.3031711
qc17_5                                                                           17.3705587
qc15_2                                                                           16.9212904
qc12_12                                                                          16.6547935
qc17_4                                                                           16.3416058
qc12_11                                                                          16.2915063
qc13_11                                                                          15.9647165
qc17_3                                                                           15.8278500
qc13_12                                                                          15.4463326
qc6_10                                                                           15.3518806
qc6_11                                                                           14.7848196
qc12_10                                                                          14.4367170
qc18_2                                                                           14.4007798
fundamental_rights                                                               13.4087823
qc6_2                                                                            13.3923889
quality_of_democracy                                                             13.1386453
qc18_3                                                                           12.6459448
qc13_10                                                                          12.4435599
country                                                                          12.3877645
social_globalisation                                                             12.0393316
sd3                                                                              12.0096958
country_code                                                                     11.9948064
isocntry                                                                         11.8074637
gdp_per_capita_usd                                                               11.4853172
qc6_1                                                                            11.3810541
No.compulsory.medical.intervention.required                                      11.3581094
eu_unemployment_female                                                           11.3317931
eu_unemployment_male                                                             10.7321846
d8                                                                               10.5853110
religious_importance                                                             10.5467341
ranking                                                                          10.4929909
sd1_4                                                                            10.4292860
gender_gap_index                                                                 10.2887537
qc7                                                                               9.5930383
qc11_6                                                                            9.2638491
Conversion.practices.ban..gender.identity.                                        9.2530000
qc18_1                                                                            8.8161638
qc4_8                                                                             8.5552258
d25                                                                               8.3891885
qc1_4                                                                             7.9164665
Name.change                                                                       7.7309905
d11                                                                               7.5676728
sd1_7                                                                             7.3592105
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required            7.2005731
Hate.speech.law..gender.identity.                                                 6.2711667
d60                                                                               6.1696432
Health..gender.identity.                                                          6.1650734
Self.determination                                                                6.0143461
sd1_8                                                                             5.8900279
Hate.crime.law..gender.identity.                                                  5.5744725
Education..gender.identity.                                                       5.3698390
Goods...services..gender.identity.                                                5.3281951
qc4_10                                                                            5.2431073
No.age.restriction                                                                4.5814640
qc4_9                                                                             3.9237117
Employment..gender.identity.                                                      3.8932522
No.laws.limiting.freedom.of.expression..national.local.                           3.8042537
Constitution..gender.identity.                                                    2.9364975
qc4_7                                                                             2.3223282
qc2_7                                                                             1.8871085
d10                                                                               1.8481273
Non.binary.recognition                                                            1.6210773
qc2_4                                                                             1.1473039
sd2_5                                                                             0.9964942
qc2_6                                                                             0.6857039
                                                                       MeanDecreaseGini
qc19_label                                                                 3907.9597532
qc15_1                                                                      203.0977738
qc15_3                                                                      251.2058185
qc17_5                                                                      102.8786640
qc15_2                                                                      186.4169848
qc12_12                                                                      96.3290986
qc17_4                                                                       80.6023619
qc12_11                                                                     134.1719739
qc13_11                                                                      40.1774477
qc17_3                                                                       71.7537562
qc13_12                                                                      37.5993112
qc6_10                                                                       54.9183529
qc6_11                                                                       71.1941945
qc12_10                                                                     138.4255409
qc18_2                                                                      102.6152690
fundamental_rights                                                           39.0981229
qc6_2                                                                        92.6932935
quality_of_democracy                                                         50.2035317
qc18_3                                                                       81.9000316
qc13_10                                                                      50.3809706
country                                                                      17.2794733
social_globalisation                                                         35.7006846
sd3                                                                          23.1382619
country_code                                                                 18.0431446
isocntry                                                                     19.0515391
gdp_per_capita_usd                                                           54.2521526
qc6_1                                                                        28.3742695
No.compulsory.medical.intervention.required                                  44.0908615
eu_unemployment_female                                                       17.5480566
eu_unemployment_male                                                         16.5163651
d8                                                                           43.9947406
religious_importance                                                         21.7073662
ranking                                                                      66.8999706
sd1_4                                                                        32.1089488
gender_gap_index                                                             26.6925580
qc7                                                                          42.5239578
qc11_6                                                                       26.6641138
Conversion.practices.ban..gender.identity.                                   12.3953510
qc18_1                                                                       31.7541216
qc4_8                                                                        10.1122807
d25                                                                          21.0096313
qc1_4                                                                        25.1326289
Name.change                                                                  29.3858647
d11                                                                          59.4415015
sd1_7                                                                         5.6560669
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required       10.9788181
Hate.speech.law..gender.identity.                                             3.6785827
d60                                                                          14.9559008
Health..gender.identity.                                                      3.6207560
Self.determination                                                            5.0599184
sd1_8                                                                         4.9048061
Hate.crime.law..gender.identity.                                              4.5928985
Education..gender.identity.                                                   4.5083700
Goods...services..gender.identity.                                            4.3098416
qc4_10                                                                        8.8356302
No.age.restriction                                                            3.6244871
qc4_9                                                                         8.6838759
Employment..gender.identity.                                                  3.1101467
No.laws.limiting.freedom.of.expression..national.local.                       2.8151224
Constitution..gender.identity.                                                2.2721426
qc4_7                                                                        10.0271135
qc2_7                                                                         0.6571858
d10                                                                          12.8383886
Non.binary.recognition                                                        0.9896623
qc2_4                                                                         1.2311808
sd2_5                                                                         1.5364715
qc2_6                                                                         1.1717483

The variables relevant at the individual level are: qc15_1, qc15_3, qc6_10 , qc17_5, qc15_2, qc12_12, etc. At the aggregate level we have : fundamental_rights, quality_of_democracy, social_globalisation, gdp_per_capita_usd, No.compulsory.medical.intervention.required, gender_gap_index, etc.

We will take more variables at the aggregate level than at the individual level since we are more interested in the aggregate part to see the differences between countries.

Multilevel regression

Now that we have the most relevant variables we perform our multilevel regression with 15 variables:

First we had to check again that all variables are in the correct scale or good categorized (which we already did at the beginning when we prepared the data)

All the variables we take are either on a scale or categorized as dummies by default (0-1). So we have to scale the numeric variables that have vary diverse scales (and not the dummies):

merged_data$qc19 <- as.numeric(as.character(merged_data$qc19))

# Scale numeric variables
vars_a_escalar <- c("qc15_1", "qc15_3", "qc6_10", "qc17_5", "qc15_2",
                    "qc12_12", "qc13_11", "qc12_11", "qc13_12", "qc12_10",
                    "social_globalisation", "fundamental_rights", "gdp_per_capita_usd", 
                    "quality_of_democracy", "gender_gap_index", "eu_unemployment_female", "eu_unemployment_male", "religious_importance", "d11", "d8" )
dummies <- c ("No.compulsory.medical.intervention.required", "Conversion.practices.ban..gender.identity.", "Education..gender.identity.", "Goods...services..gender.identity.") #we keep them in the original scale

# Scale the selected variables
merged_data[vars_a_escalar] <- scale(merged_data[vars_a_escalar])

We perform the model:

#Model
library(lme4)
Cargando paquete requerido: Matrix

Adjuntando el paquete: 'Matrix'
The following objects are masked from 'package:tidyr':

    expand, pack, unpack
library(nlme)

Adjuntando el paquete: 'nlme'
The following object is masked from 'package:lme4':

    lmList
The following object is masked from 'package:dplyr':

    collapse
library(lmerTest)

Adjuntando el paquete: 'lmerTest'
The following object is masked from 'package:lme4':

    lmer
The following object is masked from 'package:stats':

    step
modelo_multinivel <- glmer(qc19 ~ qc15_3 + qc13_12 + qc17_5 + qc12_12 + d11 + d8 + 
                           fundamental_rights + quality_of_democracy + 
                           social_globalisation + religious_importance + 
                           Conversion.practices.ban..gender.identity. + 
                           gdp_per_capita_usd + eu_unemployment_female + 
                           eu_unemployment_male + No.compulsory.medical.intervention.required + 
                           (1 | isocntry), 
                           data = merged_data, 
                           family = binomial(link = "logit"))

summary(modelo_multinivel)
Generalized linear mixed model fit by maximum likelihood (Laplace
  Approximation) [glmerMod]
 Family: binomial  ( logit )
Formula: 
qc19 ~ qc15_3 + qc13_12 + qc17_5 + qc12_12 + d11 + d8 + fundamental_rights +  
    quality_of_democracy + social_globalisation + religious_importance +  
    Conversion.practices.ban..gender.identity. + gdp_per_capita_usd +  
    eu_unemployment_female + eu_unemployment_male + No.compulsory.medical.intervention.required +  
    (1 | isocntry)
   Data: merged_data

     AIC      BIC   logLik deviance df.resid 
 19728.0  19862.8  -9847.0  19694.0    20461 

Scaled residuals: 
    Min      1Q  Median      3Q     Max 
-4.9745 -0.5651  0.3024  0.5313  6.4874 

Random effects:
 Groups   Name        Variance Std.Dev.
 isocntry (Intercept) 0.1987   0.4458  
Number of obs: 20478, groups:  isocntry, 28

Fixed effects:
                                             Estimate Std. Error z value
(Intercept)                                  0.150214   0.127849   1.175
qc15_3                                      -0.704517   0.023429 -30.071
qc13_12                                      0.080899   0.023465   3.448
qc17_5                                      -0.453428   0.020308 -22.327
qc12_12                                      0.352215   0.021890  16.090
d11                                         -0.041013   0.020281  -2.022
d8                                          -0.006579   0.018390  -0.358
fundamental_rights                           0.100862   0.138435   0.729
quality_of_democracy                         0.013760   0.127162   0.108
social_globalisation                        -0.059918   0.098157  -0.610
religious_importance                         0.033590   0.050643   0.663
Conversion.practices.ban..gender.identity.   0.652887   0.234488   2.784
gdp_per_capita_usd                           0.078024   0.089180   0.875
eu_unemployment_female                       0.027501   0.147587   0.186
eu_unemployment_male                         0.112827   0.147574   0.765
No.compulsory.medical.intervention.required  0.439902   0.228618   1.924
                                            Pr(>|z|)    
(Intercept)                                 0.240024    
qc15_3                                       < 2e-16 ***
qc13_12                                     0.000565 ***
qc17_5                                       < 2e-16 ***
qc12_12                                      < 2e-16 ***
d11                                         0.043154 *  
d8                                          0.720535    
fundamental_rights                          0.466253    
quality_of_democracy                        0.913829    
social_globalisation                        0.541575    
religious_importance                        0.507165    
Conversion.practices.ban..gender.identity.  0.005364 ** 
gdp_per_capita_usd                          0.381628    
eu_unemployment_female                      0.852181    
eu_unemployment_male                        0.444542    
No.compulsory.medical.intervention.required 0.054333 .  
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Correlation matrix not shown by default, as p = 16 > 12.
Use print(x, correlation=TRUE)  or
    vcov(x)        if you need it

Interpretation

To compare how the odds ratios change, we must exponentiate the coefficients in with exp():

exp(fixef(modelo_multinivel))
                                (Intercept) 
                                  1.1620826 
                                     qc15_3 
                                  0.4943474 
                                    qc13_12 
                                  1.0842613 
                                     qc17_5 
                                  0.6354463 
                                    qc12_12 
                                  1.4222139 
                                        d11 
                                  0.9598164 
                                         d8 
                                  0.9934426 
                         fundamental_rights 
                                  1.1061239 
                       quality_of_democracy 
                                  1.0138554 
                       social_globalisation 
                                  0.9418417 
                       religious_importance 
                                  1.0341601 
 Conversion.practices.ban..gender.identity. 
                                  1.9210785 
                         gdp_per_capita_usd 
                                  1.0811485 
                     eu_unemployment_female 
                                  1.0278824 
                       eu_unemployment_male 
                                  1.1194382 
No.compulsory.medical.intervention.required 
                                  1.5525544 

We plot it to see the same coefficients associated with their corresponding variables and significances:

library(sjPlot)
Warning: package 'sjPlot' was built under R version 4.4.3
#refugeeswelcome
plot_model(modelo_multinivel, show.values = TRUE, value.offset = .3, title = "Coefficients and significance of the variables in the multilevel model")

In summary, all the individual variables are significative, specially the individuals ones, since they were also related to opinions about LGBT people. However, what more interest us are the variables at the aggregate level so that we can focus on the differences between countries.

Regarding the individual variables, we see, ceteris paribus, that the variables that positively influence being in favor of changing gender identity in documents are: also agreeing with same-sex marriage, being comfortable with your children being intersex, feeling comfortable if a colleague at your workplace is intersex, being in favor of schools including information about intersex people, and being younger. However, the problem with the individual variables related to LGBT issues is that there may be cases of endogeneity and reverse causality that we cannot control for here: for example, being in favor of schools including information about intersex people may influence being in favor of changing gender identity, but the reverse can also occur. And this is something we cannot know with this model, which is a limitation.

Taking into account the significant variables at the aggregate level and controlling for the rest of the variables, we see that in countries where gender identity conversion practices are banned, there is a significant probability that gender identity change will be supported on documents: it’s is 92% more likely to be accepted in countries where it is banned than where it is not. This can be explained by the fact that bans can raise awareness about gender identity among the population.In countries where no compulsory medical intervention is required, gender identity changes on official documents are more likely to be supported (55% more). This may be explained by the fact that, in the absence of mandatory medical interventions, legal recognition of gender identity is based more on self-determination than on medical requirements, which encourages a more inclusive and flexible stance regarding gender changes on official documents.

Second analysis: Developing a Predictive Model for Other Countries

Train and test

We divide the data in training and test: the training set data is used to train the model and then we evaluate its performance with unseen data (test set), ensuring a more realistic assessment of the model generalization capacity

set.seed(123)  # We set the seed for reproducibility
library(caret)  # Caret to divide the dataset
Cargando paquete requerido: lattice

Adjuntando el paquete: 'caret'
The following object is masked from 'package:purrr':

    lift
merged_data <- merged_data[!is.na(merged_data$qc19), ]  # Removes rows with NA in qc19

train_index <- createDataPartition(merged_data$qc19, p = 0.8, list = FALSE)

train_data <- merged_data[train_index, ]
test_data <- merged_data[-train_index, ]

Select relevant variables

Selection of relevant variables with Lasso:

library(glmnet)
Loaded glmnet 4.1-8
library(lme4)

# Remove rows with missing values in X_train and y_train
train_data_no_na <- na.omit(train_data)

# Separate the predictor variables (X) and the target variable (y).
X_train_no_na <- train_data_no_na[, setdiff(names(train_data_no_na), "qc19")]
y_train_no_na <- train_data_no_na$qc19

# Adjust Lasso model
lasso_model <- glmnet(as.matrix(X_train_no_na), y_train_no_na, alpha = 1, family = "binomial")
Warning in storage.mode(xd) <- "double": NAs introducidos por coerción
coef(lasso_model)
68 x 73 sparse Matrix of class "dgCMatrix"
  [[ suppressing 73 column names 's0', 's1', 's2' ... ]]
                                                                                
(Intercept)                                                            0.4035139
isocntry                                                               .        
country                                                                .        
d8                                                                     .        
d10                                                                    .        
d11                                                                    .        
d25                                                                    .        
d60                                                                    .        
sd1_4                                                                  .        
sd1_7                                                                  .        
sd1_8                                                                  .        
sd2_5                                                                  .        
sd3                                                                    .        
qc1_4                                                                  .        
qc2_4                                                                  .        
qc2_6                                                                  .        
qc2_7                                                                  .        
qc4_7                                                                  .        
qc4_8                                                                  .        
qc4_9                                                                  .        
qc4_10                                                                 .        
qc6_1                                                                  .        
qc6_2                                                                  .        
qc6_10                                                                 .        
qc6_11                                                                 .        
qc7                                                                    .        
qc11_6                                                                 .        
qc12_10                                                                .        
qc12_11                                                                .        
qc12_12                                                                .        
qc13_10                                                                .        
qc13_11                                                                .        
qc13_12                                                                .        
qc15_1                                                                 .        
qc15_2                                                                 .        
qc15_3                                                                 .        
qc17_3                                                                 .        
qc17_4                                                                 .        
qc17_5                                                                 .        
qc18_1                                                                 .        
qc18_2                                                                 .        
qc18_3                                                                 .        
ranking                                                                .        
Constitution..gender.identity.                                         .        
Employment..gender.identity.                                           .        
Goods...services..gender.identity.                                     .        
Education..gender.identity.                                            .        
Health..gender.identity.                                               .        
Conversion.practices.ban..gender.identity.                             .        
Hate.crime.law..gender.identity.                                       .        
Hate.speech.law..gender.identity.                                      .        
Name.change                                                            .        
Self.determination                                                     .        
Non.binary.recognition                                                 .        
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required .        
No.compulsory.medical.intervention.required                            .        
No.age.restriction                                                     .        
No.laws.limiting.freedom.of.expression..national.local.                .        
country_code                                                           .        
gender_gap_index                                                       .        
eu_unemployment_female                                                 .        
eu_unemployment_male                                                   .        
social_globalisation                                                   .        
religious_importance                                                   .        
fundamental_rights                                                     .        
gdp_per_capita_usd                                                     .        
quality_of_democracy                                                   .        
qc19_label                                                             .        
                                                                                  
(Intercept)                                                             0.40282452
isocntry                                                                .         
country                                                                 .         
d8                                                                      .         
d10                                                                     .         
d11                                                                     .         
d25                                                                     .         
d60                                                                     .         
sd1_4                                                                   .         
sd1_7                                                                   .         
sd1_8                                                                   .         
sd2_5                                                                   .         
sd3                                                                     .         
qc1_4                                                                   .         
qc2_4                                                                   .         
qc2_6                                                                   .         
qc2_7                                                                   .         
qc4_7                                                                   .         
qc4_8                                                                   .         
qc4_9                                                                   .         
qc4_10                                                                  .         
qc6_1                                                                   .         
qc6_2                                                                   .         
qc6_10                                                                  .         
qc6_11                                                                  .         
qc7                                                                     .         
qc11_6                                                                  .         
qc12_10                                                                 .         
qc12_11                                                                 .         
qc12_12                                                                 .         
qc13_10                                                                 .         
qc13_11                                                                 .         
qc13_12                                                                 .         
qc15_1                                                                  .         
qc15_2                                                                  .         
qc15_3                                                                 -0.08863371
qc17_3                                                                  .         
qc17_4                                                                  .         
qc17_5                                                                  .         
qc18_1                                                                  .         
qc18_2                                                                  .         
qc18_3                                                                  .         
ranking                                                                 .         
Constitution..gender.identity.                                          .         
Employment..gender.identity.                                            .         
Goods...services..gender.identity.                                      .         
Education..gender.identity.                                             .         
Health..gender.identity.                                                .         
Conversion.practices.ban..gender.identity.                              .         
Hate.crime.law..gender.identity.                                        .         
Hate.speech.law..gender.identity.                                       .         
Name.change                                                             .         
Self.determination                                                      .         
Non.binary.recognition                                                  .         
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .         
No.compulsory.medical.intervention.required                             .         
No.age.restriction                                                      .         
No.laws.limiting.freedom.of.expression..national.local.                 .         
country_code                                                            .         
gender_gap_index                                                        .         
eu_unemployment_female                                                  .         
eu_unemployment_male                                                    .         
social_globalisation                                                    .         
religious_importance                                                    .         
fundamental_rights                                                      .         
gdp_per_capita_usd                                                      .         
quality_of_democracy                                                    .         
qc19_label                                                              .         
                                                                                  
(Intercept)                                                             0.40465532
isocntry                                                                .         
country                                                                 .         
d8                                                                      .         
d10                                                                     .         
d11                                                                     .         
d25                                                                     .         
d60                                                                     .         
sd1_4                                                                   .         
sd1_7                                                                   .         
sd1_8                                                                   .         
sd2_5                                                                   .         
sd3                                                                     .         
qc1_4                                                                   .         
qc2_4                                                                   .         
qc2_6                                                                   .         
qc2_7                                                                   .         
qc4_7                                                                   .         
qc4_8                                                                   .         
qc4_9                                                                   .         
qc4_10                                                                  .         
qc6_1                                                                   .         
qc6_2                                                                   .         
qc6_10                                                                  .         
qc6_11                                                                  .         
qc7                                                                     .         
qc11_6                                                                  .         
qc12_10                                                                 .         
qc12_11                                                                 .         
qc12_12                                                                 .         
qc13_10                                                                 .         
qc13_11                                                                 .         
qc13_12                                                                 .         
qc15_1                                                                 -0.04143519
qc15_2                                                                  .         
qc15_3                                                                 -0.13694164
qc17_3                                                                  .         
qc17_4                                                                  .         
qc17_5                                                                  .         
qc18_1                                                                  .         
qc18_2                                                                  .         
qc18_3                                                                  .         
ranking                                                                 .         
Constitution..gender.identity.                                          .         
Employment..gender.identity.                                            .         
Goods...services..gender.identity.                                      .         
Education..gender.identity.                                             .         
Health..gender.identity.                                                .         
Conversion.practices.ban..gender.identity.                              .         
Hate.crime.law..gender.identity.                                        .         
Hate.speech.law..gender.identity.                                       .         
Name.change                                                             .         
Self.determination                                                      .         
Non.binary.recognition                                                  .         
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .         
No.compulsory.medical.intervention.required                             .         
No.age.restriction                                                      .         
No.laws.limiting.freedom.of.expression..national.local.                 .         
country_code                                                            .         
gender_gap_index                                                        .         
eu_unemployment_female                                                  .         
eu_unemployment_male                                                    .         
social_globalisation                                                    .         
religious_importance                                                    .         
fundamental_rights                                                      .         
gdp_per_capita_usd                                                      .         
quality_of_democracy                                                    .         
qc19_label                                                              .         
                                                                                 
(Intercept)                                                             0.4074271
isocntry                                                                .        
country                                                                 .        
d8                                                                      .        
d10                                                                     .        
d11                                                                     .        
d25                                                                     .        
d60                                                                     .        
sd1_4                                                                   .        
sd1_7                                                                   .        
sd1_8                                                                   .        
sd2_5                                                                   .        
sd3                                                                     .        
qc1_4                                                                   .        
qc2_4                                                                   .        
qc2_6                                                                   .        
qc2_7                                                                   .        
qc4_7                                                                   .        
qc4_8                                                                   .        
qc4_9                                                                   .        
qc4_10                                                                  .        
qc6_1                                                                   .        
qc6_2                                                                   .        
qc6_10                                                                  .        
qc6_11                                                                  .        
qc7                                                                     .        
qc11_6                                                                  .        
qc12_10                                                                 .        
qc12_11                                                                 .        
qc12_12                                                                 .        
qc13_10                                                                 .        
qc13_11                                                                 .        
qc13_12                                                                 .        
qc15_1                                                                 -0.0818721
qc15_2                                                                  .        
qc15_3                                                                 -0.1792650
qc17_3                                                                  .        
qc17_4                                                                  .        
qc17_5                                                                  .        
qc18_1                                                                  .        
qc18_2                                                                  .        
qc18_3                                                                  .        
ranking                                                                 .        
Constitution..gender.identity.                                          .        
Employment..gender.identity.                                            .        
Goods...services..gender.identity.                                      .        
Education..gender.identity.                                             .        
Health..gender.identity.                                                .        
Conversion.practices.ban..gender.identity.                              .        
Hate.crime.law..gender.identity.                                        .        
Hate.speech.law..gender.identity.                                       .        
Name.change                                                             .        
Self.determination                                                      .        
Non.binary.recognition                                                  .        
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .        
No.compulsory.medical.intervention.required                             .        
No.age.restriction                                                      .        
No.laws.limiting.freedom.of.expression..national.local.                 .        
country_code                                                            .        
gender_gap_index                                                        .        
eu_unemployment_female                                                  .        
eu_unemployment_male                                                    .        
social_globalisation                                                    .        
religious_importance                                                    .        
fundamental_rights                                                      .        
gdp_per_capita_usd                                                      .        
quality_of_democracy                                                    .        
qc19_label                                                              .        
                                                                                   
(Intercept)                                                             0.410650170
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                   .          
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   .          
qc6_10                                                                  .          
qc6_11                                                                  .          
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.003229364
qc12_12                                                                 .          
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.110907563
qc15_2                                                                 -0.021723057
qc15_3                                                                 -0.204699996
qc17_3                                                                  .          
qc17_4                                                                  .          
qc17_5                                                                  .          
qc18_1                                                                  .          
qc18_2                                                                  .          
qc18_3                                                                  .          
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              .          
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             .          
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             .          
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                  
(Intercept)                                                             0.41515231
isocntry                                                                .         
country                                                                 .         
d8                                                                      .         
d10                                                                     .         
d11                                                                     .         
d25                                                                     .         
d60                                                                     .         
sd1_4                                                                   .         
sd1_7                                                                   .         
sd1_8                                                                   .         
sd2_5                                                                   .         
sd3                                                                     .         
qc1_4                                                                   .         
qc2_4                                                                   .         
qc2_6                                                                   .         
qc2_7                                                                   .         
qc4_7                                                                   .         
qc4_8                                                                   .         
qc4_9                                                                   .         
qc4_10                                                                  .         
qc6_1                                                                   .         
qc6_2                                                                   .         
qc6_10                                                                  .         
qc6_11                                                                  .         
qc7                                                                     .         
qc11_6                                                                  .         
qc12_10                                                                 .         
qc12_11                                                                 0.03904361
qc12_12                                                                 .         
qc13_10                                                                 .         
qc13_11                                                                 .         
qc13_12                                                                 .         
qc15_1                                                                 -0.13106507
qc15_2                                                                 -0.03433956
qc15_3                                                                 -0.22282545
qc17_3                                                                  .         
qc17_4                                                                  .         
qc17_5                                                                  .         
qc18_1                                                                  .         
qc18_2                                                                  .         
qc18_3                                                                  .         
ranking                                                                 .         
Constitution..gender.identity.                                          .         
Employment..gender.identity.                                            .         
Goods...services..gender.identity.                                      .         
Education..gender.identity.                                             .         
Health..gender.identity.                                                .         
Conversion.practices.ban..gender.identity.                              .         
Hate.crime.law..gender.identity.                                        .         
Hate.speech.law..gender.identity.                                       .         
Name.change                                                             .         
Self.determination                                                      .         
Non.binary.recognition                                                  .         
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .         
No.compulsory.medical.intervention.required                             .         
No.age.restriction                                                      .         
No.laws.limiting.freedom.of.expression..national.local.                 .         
country_code                                                            .         
gender_gap_index                                                        .         
eu_unemployment_female                                                  .         
eu_unemployment_male                                                    .         
social_globalisation                                                    .         
religious_importance                                                    .         
fundamental_rights                                                      .         
gdp_per_capita_usd                                                      .         
quality_of_democracy                                                    .         
qc19_label                                                              .         
                                                                                  
(Intercept)                                                             0.41987602
isocntry                                                                .         
country                                                                 .         
d8                                                                      .         
d10                                                                     .         
d11                                                                     .         
d25                                                                     .         
d60                                                                     .         
sd1_4                                                                   .         
sd1_7                                                                   .         
sd1_8                                                                   .         
sd2_5                                                                   .         
sd3                                                                     .         
qc1_4                                                                   .         
qc2_4                                                                   .         
qc2_6                                                                   .         
qc2_7                                                                   .         
qc4_7                                                                   .         
qc4_8                                                                   .         
qc4_9                                                                   .         
qc4_10                                                                  .         
qc6_1                                                                   .         
qc6_2                                                                   .         
qc6_10                                                                  .         
qc6_11                                                                  .         
qc7                                                                     .         
qc11_6                                                                  .         
qc12_10                                                                 .         
qc12_11                                                                 0.07188836
qc12_12                                                                 .         
qc13_10                                                                 .         
qc13_11                                                                 .         
qc13_12                                                                 .         
qc15_1                                                                 -0.15000604
qc15_2                                                                 -0.04571972
qc15_3                                                                 -0.24007455
qc17_3                                                                  .         
qc17_4                                                                  .         
qc17_5                                                                  .         
qc18_1                                                                  .         
qc18_2                                                                  .         
qc18_3                                                                  .         
ranking                                                                 .         
Constitution..gender.identity.                                          .         
Employment..gender.identity.                                            .         
Goods...services..gender.identity.                                      .         
Education..gender.identity.                                             .         
Health..gender.identity.                                                .         
Conversion.practices.ban..gender.identity.                              .         
Hate.crime.law..gender.identity.                                        .         
Hate.speech.law..gender.identity.                                       .         
Name.change                                                             .         
Self.determination                                                      .         
Non.binary.recognition                                                  .         
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .         
No.compulsory.medical.intervention.required                             .         
No.age.restriction                                                      .         
No.laws.limiting.freedom.of.expression..national.local.                 .         
country_code                                                            .         
gender_gap_index                                                        .         
eu_unemployment_female                                                  .         
eu_unemployment_male                                                    .         
social_globalisation                                                    .         
religious_importance                                                    .         
fundamental_rights                                                      .         
gdp_per_capita_usd                                                      .         
quality_of_democracy                                                    .         
qc19_label                                                              .         
                                                                                   
(Intercept)                                                             0.430782774
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                   .          
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.001225895
qc6_10                                                                  .          
qc6_11                                                                  .          
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.095117781
qc12_12                                                                 .          
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.164816023
qc15_2                                                                 -0.051336802
qc15_3                                                                 -0.249941975
qc17_3                                                                  .          
qc17_4                                                                 -0.013991631
qc17_5                                                                  .          
qc18_1                                                                  .          
qc18_2                                                                  0.003022776
qc18_3                                                                  .          
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              .          
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             .          
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             .          
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                    
(Intercept)                                                             0.4218160036
isocntry                                                                .           
country                                                                 .           
d8                                                                      .           
d10                                                                     .           
d11                                                                     .           
d25                                                                     .           
d60                                                                     .           
sd1_4                                                                   .           
sd1_7                                                                   .           
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                   .           
qc2_6                                                                   .           
qc2_7                                                                   .           
qc4_7                                                                   .           
qc4_8                                                                   .           
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   .           
qc6_2                                                                   0.0043355757
qc6_10                                                                  .           
qc6_11                                                                  .           
qc7                                                                     .           
qc11_6                                                                  .           
qc12_10                                                                 .           
qc12_11                                                                 0.1090251643
qc12_12                                                                 .           
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.1749661559
qc15_2                                                                 -0.0535932289
qc15_3                                                                 -0.2530855895
qc17_3                                                                  .           
qc17_4                                                                 -0.0373870752
qc17_5                                                                  .           
qc18_1                                                                  .           
qc18_2                                                                  0.0071783268
qc18_3                                                                  .           
ranking                                                                 0.0004248942
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            .           
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              .           
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             .           
Self.determination                                                      .           
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             .           
No.age.restriction                                                      .           
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                      .           
quality_of_democracy                                                    .           
qc19_label                                                              .           
                                                                                   
(Intercept)                                                             0.377236244
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                   .          
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.006740661
qc6_10                                                                  .          
qc6_11                                                                  .          
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.121589561
qc12_12                                                                 .          
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.183811997
qc15_2                                                                 -0.054863504
qc15_3                                                                 -0.253377199
qc17_3                                                                  .          
qc17_4                                                                 -0.058511823
qc17_5                                                                  .          
qc18_1                                                                  .          
qc18_2                                                                  0.010494274
qc18_3                                                                  .          
ranking                                                                 0.001637132
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              .          
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             .          
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             .          
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.341954384
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                   .          
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.008875612
qc6_10                                                                  .          
qc6_11                                                                  .          
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.133352073
qc12_12                                                                 .          
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.192112460
qc15_2                                                                 -0.055515465
qc15_3                                                                 -0.253851770
qc17_3                                                                  .          
qc17_4                                                                 -0.078999261
qc17_5                                                                  .          
qc18_1                                                                  .          
qc18_2                                                                  0.013340999
qc18_3                                                                  .          
ranking                                                                 0.002321402
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              .          
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.015277391
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.016999734
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.312512135
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                   .          
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.010616849
qc6_10                                                                  .          
qc6_11                                                                  .          
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.144174346
qc12_12                                                                 .          
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.200112439
qc15_2                                                                 -0.055516303
qc15_3                                                                 -0.254265749
qc17_3                                                                  .          
qc17_4                                                                 -0.099192552
qc17_5                                                                  .          
qc18_1                                                                  .          
qc18_2                                                                  0.015591178
qc18_3                                                                  .          
ranking                                                                 0.002351456
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              .          
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.059853158
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.052436559
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.276016631
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                   .          
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.012239160
qc6_10                                                                  .          
qc6_11                                                                  .          
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.154291764
qc12_12                                                                 .          
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.207849371
qc15_2                                                                 -0.055420505
qc15_3                                                                 -0.254798420
qc17_3                                                                  .          
qc17_4                                                                 -0.113263897
qc17_5                                                                 -0.005825133
qc18_1                                                                  .          
qc18_2                                                                  0.017669102
qc18_3                                                                  .          
ranking                                                                 0.002360148
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              .          
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.101158800
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.086216318
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.235247140
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                   .          
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.013695871
qc6_10                                                                  .          
qc6_11                                                                  .          
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.163172852
qc12_12                                                                 0.001189150
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.215051213
qc15_2                                                                 -0.055207555
qc15_3                                                                 -0.255517952
qc17_3                                                                  .          
qc17_4                                                                 -0.122804348
qc17_5                                                                 -0.015671498
qc18_1                                                                  .          
qc18_2                                                                  0.019570076
qc18_3                                                                  .          
ranking                                                                 0.002363245
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              .          
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.139569198
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.117996859
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                    
(Intercept)                                                             0.1973627015
isocntry                                                                .           
country                                                                 .           
d8                                                                      .           
d10                                                                     .           
d11                                                                     .           
d25                                                                     .           
d60                                                                     .           
sd1_4                                                                   .           
sd1_7                                                                   .           
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                   .           
qc2_6                                                                   .           
qc2_7                                                                   .           
qc4_7                                                                   .           
qc4_8                                                                   .           
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   .           
qc6_2                                                                   0.0145678080
qc6_10                                                                  .           
qc6_11                                                                  0.0004550584
qc7                                                                     .           
qc11_6                                                                  .           
qc12_10                                                                 .           
qc12_11                                                                 0.1667533191
qc12_12                                                                 0.0075801811
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2220493087
qc15_2                                                                 -0.0551485761
qc15_3                                                                 -0.2562849367
qc17_3                                                                  .           
qc17_4                                                                 -0.1314451970
qc17_5                                                                 -0.0251597565
qc18_1                                                                  .           
qc18_2                                                                  0.0213068506
qc18_3                                                                  .           
ranking                                                                 0.0023661907
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            .           
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              .           
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.1753586419
Self.determination                                                      .           
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.1478386155
No.age.restriction                                                      .           
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                      .           
quality_of_democracy                                                    .           
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             1.597949e-01
isocntry                                                                .           
country                                                                 .           
d8                                                                      .           
d10                                                                     .           
d11                                                                     .           
d25                                                                     .           
d60                                                                     .           
sd1_4                                                                  -2.032793e-03
sd1_7                                                                   .           
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                   .           
qc2_6                                                                   .           
qc2_7                                                                   .           
qc4_7                                                                   .           
qc4_8                                                                   .           
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   .           
qc6_2                                                                   1.408304e-02
qc6_10                                                                  .           
qc6_11                                                                  3.145098e-03
qc7                                                                     .           
qc11_6                                                                  .           
qc12_10                                                                 .           
qc12_11                                                                 1.702554e-01
qc12_12                                                                 1.163290e-02
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -2.292124e-01
qc15_2                                                                 -5.499538e-02
qc15_3                                                                 -2.564862e-01
qc17_3                                                                  .           
qc17_4                                                                 -1.393244e-01
qc17_5                                                                 -3.380913e-02
qc18_1                                                                  .           
qc18_2                                                                  2.271273e-02
qc18_3                                                                  4.052792e-05
ranking                                                                 2.389399e-03
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            .           
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              .           
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             2.089535e-01
Self.determination                                                      .           
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             1.750120e-01
No.age.restriction                                                      .           
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                      .           
quality_of_democracy                                                    .           
qc19_label                                                              .           
                                                                                   
(Intercept)                                                             0.165677149
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.023411560
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.013066539
qc6_10                                                                  .          
qc6_11                                                                  0.005786714
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.172416728
qc12_12                                                                 0.015892774
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.235365177
qc15_2                                                                 -0.053841850
qc15_3                                                                 -0.256034502
qc17_3                                                                 -0.001742596
qc17_4                                                                 -0.145654596
qc17_5                                                                 -0.041697036
qc18_1                                                                  .          
qc18_2                                                                  0.022447970
qc18_3                                                                  0.001489455
ranking                                                                 0.002318060
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              .          
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.238677971
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.202256447
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.176498154
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.043779458
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.012287987
qc6_10                                                                  .          
qc6_11                                                                  0.008234606
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.174686961
qc12_12                                                                 0.019558412
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.240591261
qc15_2                                                                 -0.052859866
qc15_3                                                                 -0.256246541
qc17_3                                                                 -0.004567780
qc17_4                                                                 -0.151330285
qc17_5                                                                 -0.048317192
qc18_1                                                                  .          
qc18_2                                                                  0.021947616
qc18_3                                                                  0.003201553
ranking                                                                 0.002140604
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.014257034
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.265100257
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.223076260
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.190744387
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.062631880
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.011674410
qc6_10                                                                  .          
qc6_11                                                                  0.010523562
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.176856843
qc12_12                                                                 0.022683286
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.244771681
qc15_2                                                                 -0.052518961
qc15_3                                                                 -0.257434418
qc17_3                                                                 -0.006923990
qc17_4                                                                 -0.157098215
qc17_5                                                                 -0.054270333
qc18_1                                                                  .          
qc18_2                                                                  0.021272920
qc18_3                                                                  0.005254426
ranking                                                                 0.001800529
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.049862726
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.288709425
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.235019163
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    .          
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.207793864
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.081066026
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   .          
qc6_2                                                                   0.011099983
qc6_10                                                                  .          
qc6_11                                                                  0.012779357
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.179240172
qc12_12                                                                 0.025362095
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.248939610
qc15_2                                                                 -0.052078500
qc15_3                                                                 -0.258234394
qc17_3                                                                 -0.009297163
qc17_4                                                                 -0.162194830
qc17_5                                                                 -0.059791988
qc18_1                                                                  .          
qc18_2                                                                  0.020734354
qc18_3                                                                  0.007018140
ranking                                                                 0.001460244
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.083804113
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.308589770
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.245921760
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.001767331
qc19_label                                                              .          
                                                                                    
(Intercept)                                                             0.2423512706
isocntry                                                                .           
country                                                                 .           
d8                                                                      .           
d10                                                                     .           
d11                                                                     .           
d25                                                                     .           
d60                                                                     .           
sd1_4                                                                  -0.0972865871
sd1_7                                                                   .           
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                   .           
qc2_6                                                                   .           
qc2_7                                                                   .           
qc4_7                                                                   .           
qc4_8                                                                   .           
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   .           
qc6_2                                                                   0.0107319202
qc6_10                                                                  .           
qc6_11                                                                  0.0151395393
qc7                                                                     .           
qc11_6                                                                  .           
qc12_10                                                                 .           
qc12_11                                                                 0.1808236112
qc12_12                                                                 0.0283368600
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2518507871
qc15_2                                                                 -0.0521414512
qc15_3                                                                 -0.2594140340
qc17_3                                                                 -0.0109742096
qc17_4                                                                 -0.1667593841
qc17_5                                                                 -0.0652752144
qc18_1                                                                  .           
qc18_2                                                                  0.0200493839
qc18_3                                                                  0.0087903737
ranking                                                                 0.0008297106
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            .           
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.1258992631
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.3135374011
Self.determination                                                      .           
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.2555076808
No.age.restriction                                                      .           
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                      .           
quality_of_democracy                                                    0.0149104638
qc19_label                                                              .           
                                                                                   
(Intercept)                                                             0.270632494
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.112337588
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.000509076
qc6_2                                                                   0.010205154
qc6_10                                                                  .          
qc6_11                                                                  0.017371562
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.183045882
qc12_12                                                                 0.030444008
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.254881111
qc15_2                                                                 -0.052061834
qc15_3                                                                 -0.260348302
qc17_3                                                                 -0.012372988
qc17_4                                                                 -0.171515395
qc17_5                                                                 -0.070040526
qc18_1                                                                  .          
qc18_2                                                                  0.019650084
qc18_3                                                                  0.010260598
ranking                                                                 0.000253858
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.164565640
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.318701334
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.264712732
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.026840078
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.247564100
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.125600681
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.005835470
qc6_2                                                                   0.008839078
qc6_10                                                                  .          
qc6_11                                                                  0.019450349
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.185062605
qc12_12                                                                 0.030840599
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.257170676
qc15_2                                                                 -0.052743825
qc15_3                                                                 -0.261857358
qc17_3                                                                 -0.013462296
qc17_4                                                                 -0.176635792
qc17_5                                                                 -0.073720032
qc18_1                                                                  .          
qc18_2                                                                  0.019707092
qc18_3                                                                  0.011337652
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.195820051
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.324296567
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.268929649
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.035298638
qc19_label                                                              .          
                                                                                    
(Intercept)                                                             0.2170139687
isocntry                                                                .           
country                                                                 .           
d8                                                                      .           
d10                                                                     .           
d11                                                                     .           
d25                                                                     .           
d60                                                                     .           
sd1_4                                                                  -0.1373437696
sd1_7                                                                   .           
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                   .           
qc2_6                                                                   .           
qc2_7                                                                   .           
qc4_7                                                                   .           
qc4_8                                                                   .           
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   0.0107096590
qc6_2                                                                   0.0075256943
qc6_10                                                                  0.0001390261
qc6_11                                                                  0.0213321106
qc7                                                                     .           
qc11_6                                                                  .           
qc12_10                                                                 .           
qc12_11                                                                 0.1866508228
qc12_12                                                                 0.0313284444
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2591947106
qc15_2                                                                 -0.0535275732
qc15_3                                                                 -0.2632875367
qc17_3                                                                 -0.0144791992
qc17_4                                                                 -0.1814001380
qc17_5                                                                 -0.0770617027
qc18_1                                                                  .           
qc18_2                                                                  0.0198493361
qc18_3                                                                  0.0122551364
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            .           
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.2228457357
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.3309688900
Self.determination                                                      .           
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.2667664690
No.age.restriction                                                      .           
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                      .           
quality_of_democracy                                                    0.0419030724
qc19_label                                                              .           
                                                                                   
(Intercept)                                                             0.194599897
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     .          
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.148537135
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.015320940
qc6_2                                                                   0.005784622
qc6_10                                                                  0.004034496
qc6_11                                                                  0.022570679
qc7                                                                     .          
qc11_6                                                                  .          
qc12_10                                                                 .          
qc12_11                                                                 0.187155318
qc12_12                                                                 0.032478013
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.261487048
qc15_2                                                                 -0.054266907
qc15_3                                                                 -0.264485122
qc17_3                                                                 -0.015429044
qc17_4                                                                 -0.185558792
qc17_5                                                                 -0.080387305
qc18_1                                                                  .          
qc18_2                                                                  0.019907704
qc18_3                                                                  0.013158914
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.247771576
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.337263581
Self.determination                                                      .          
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.264892692
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.048074190
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.170843344
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     0.007830373
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.158100466
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.019400240
qc6_2                                                                   0.004101560
qc6_10                                                                  0.008057014
qc6_11                                                                  0.023631720
qc7                                                                     .          
qc11_6                                                                 -0.005329659
qc12_10                                                                 .          
qc12_11                                                                 0.186710486
qc12_12                                                                 0.033777389
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.263373802
qc15_2                                                                 -0.054785549
qc15_3                                                                 -0.265403606
qc17_3                                                                 -0.016221201
qc17_4                                                                 -0.188449739
qc17_5                                                                 -0.083598044
qc18_1                                                                  .          
qc18_2                                                                  0.019591091
qc18_3                                                                  0.014459145
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.270809152
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.343287624
Self.determination                                                      0.001786194
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.263583930
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.053679019
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.125950564
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     0.031784862
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.165673855
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.022895101
qc6_2                                                                   0.002382217
qc6_10                                                                  0.011701639
qc6_11                                                                  0.024578010
qc7                                                                     .          
qc11_6                                                                 -0.012677877
qc12_10                                                                 .          
qc12_11                                                                 0.185229389
qc12_12                                                                 0.035482560
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.265044758
qc15_2                                                                 -0.055506041
qc15_3                                                                 -0.265970049
qc17_3                                                                 -0.017145356
qc17_4                                                                 -0.189955697
qc17_5                                                                 -0.086911654
qc18_1                                                                  .          
qc18_2                                                                  0.018349939
qc18_3                                                                  0.016677329
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.294676137
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.349050456
Self.determination                                                      0.014938361
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.256162927
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.059053929
qc19_label                                                              .          
                                                                                   
(Intercept)                                                             0.085126597
isocntry                                                                .          
country                                                                 .          
d8                                                                      .          
d10                                                                     0.054035717
d11                                                                     .          
d25                                                                     .          
d60                                                                     .          
sd1_4                                                                  -0.172732915
sd1_7                                                                   .          
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                   .          
qc4_7                                                                   .          
qc4_8                                                                   .          
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.026074150
qc6_2                                                                   0.000864095
qc6_10                                                                  0.015227772
qc6_11                                                                  0.025400189
qc7                                                                     .          
qc11_6                                                                 -0.019521723
qc12_10                                                                 .          
qc12_11                                                                 0.184456072
qc12_12                                                                 0.036640180
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.266727429
qc15_2                                                                 -0.055968499
qc15_3                                                                 -0.266519619
qc17_3                                                                 -0.018096094
qc17_4                                                                 -0.191386186
qc17_5                                                                 -0.089903873
qc18_1                                                                  .          
qc18_2                                                                  0.017132636
qc18_3                                                                  0.018784108
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                                .          
Conversion.practices.ban..gender.identity.                              0.316780692
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.354472875
Self.determination                                                      0.026908053
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.249480302
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.064013578
qc19_label                                                              .          
                                                                                    
(Intercept)                                                             0.0461543741
isocntry                                                                .           
country                                                                 .           
d8                                                                      .           
d10                                                                     0.0746006528
d11                                                                     .           
d25                                                                     .           
d60                                                                     .           
sd1_4                                                                  -0.1791902949
sd1_7                                                                   .           
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                   .           
qc2_6                                                                   .           
qc2_7                                                                   .           
qc4_7                                                                   .           
qc4_8                                                                   .           
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   0.0288922654
qc6_2                                                                   .           
qc6_10                                                                  0.0177659841
qc6_11                                                                  0.0260582883
qc7                                                                     .           
qc11_6                                                                 -0.0259023582
qc12_10                                                                 .           
qc12_11                                                                 0.1836433178
qc12_12                                                                 0.0377125208
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2684745378
qc15_2                                                                 -0.0560599133
qc15_3                                                                 -0.2668530691
qc17_3                                                                 -0.0191069432
qc17_4                                                                 -0.1926806441
qc17_5                                                                 -0.0926392743
qc18_1                                                                  .           
qc18_2                                                                  0.0160991307
qc18_3                                                                  0.0206365104
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            .           
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.0002183961
Conversion.practices.ban..gender.identity.                              0.3371257909
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.3592283132
Self.determination                                                      0.0375357822
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.2436539574
No.age.restriction                                                      .           
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                      .           
quality_of_democracy                                                    0.0686376293
qc19_label                                                              .           
                                                                                  
(Intercept)                                                             0.02159593
isocntry                                                                .         
country                                                                 .         
d8                                                                      .         
d10                                                                     0.09338522
d11                                                                     .         
d25                                                                     .         
d60                                                                     .         
sd1_4                                                                  -0.18589733
sd1_7                                                                   .         
sd1_8                                                                   .         
sd2_5                                                                   .         
sd3                                                                     .         
qc1_4                                                                   .         
qc2_4                                                                   .         
qc2_6                                                                   .         
qc2_7                                                                   .         
qc4_7                                                                   .         
qc4_8                                                                   .         
qc4_9                                                                   .         
qc4_10                                                                  .         
qc6_1                                                                   0.03191273
qc6_2                                                                   .         
qc6_10                                                                  0.01986978
qc6_11                                                                  0.02626771
qc7                                                                     .         
qc11_6                                                                 -0.03139239
qc12_10                                                                 .         
qc12_11                                                                 0.18243545
qc12_12                                                                 0.03865657
qc13_10                                                                 .         
qc13_11                                                                 .         
qc13_12                                                                 .         
qc15_1                                                                 -0.26921246
qc15_2                                                                 -0.05711276
qc15_3                                                                 -0.26770987
qc17_3                                                                 -0.01957747
qc17_4                                                                 -0.19365596
qc17_5                                                                 -0.09505306
qc18_1                                                                  .         
qc18_2                                                                  0.01468165
qc18_3                                                                  0.02302698
ranking                                                                 .         
Constitution..gender.identity.                                          .         
Employment..gender.identity.                                            .         
Goods...services..gender.identity.                                      .         
Education..gender.identity.                                             .         
Health..gender.identity.                                               -0.02684735
Conversion.practices.ban..gender.identity.                              0.36208210
Hate.crime.law..gender.identity.                                        .         
Hate.speech.law..gender.identity.                                       .         
Name.change                                                             0.35822665
Self.determination                                                      0.04496353
Non.binary.recognition                                                  .         
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .         
No.compulsory.medical.intervention.required                             0.23801175
No.age.restriction                                                      .         
No.laws.limiting.freedom.of.expression..national.local.                 .         
country_code                                                            .         
gender_gap_index                                                        .         
eu_unemployment_female                                                  .         
eu_unemployment_male                                                    .         
social_globalisation                                                    .         
religious_importance                                                    .         
fundamental_rights                                                      .         
gdp_per_capita_usd                                                      .         
quality_of_democracy                                                    0.07544554
qc19_label                                                              .         
                                                                                    
(Intercept)                                                             0.0003453822
isocntry                                                                .           
country                                                                 .           
d8                                                                      .           
d10                                                                     0.1106777618
d11                                                                     .           
d25                                                                     .           
d60                                                                     .           
sd1_4                                                                  -0.1920751516
sd1_7                                                                   .           
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                   .           
qc2_6                                                                   .           
qc2_7                                                                   .           
qc4_7                                                                   .           
qc4_8                                                                   .           
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   0.0346949526
qc6_2                                                                   .           
qc6_10                                                                  0.0219273294
qc6_11                                                                  0.0264298953
qc7                                                                     .           
qc11_6                                                                 -0.0364355274
qc12_10                                                                 .           
qc12_11                                                                 0.1820421479
qc12_12                                                                 0.0389567827
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2699987449
qc15_2                                                                 -0.0579870203
qc15_3                                                                 -0.2684931464
qc17_3                                                                 -0.0199899227
qc17_4                                                                 -0.1951348489
qc17_5                                                                 -0.0967913007
qc18_1                                                                  .           
qc18_2                                                                  0.0134741282
qc18_3                                                                  0.0251535335
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            .           
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.0514983340
Conversion.practices.ban..gender.identity.                              0.3852732446
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.3574029927
Self.determination                                                      0.0519459731
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.2326738968
No.age.restriction                                                      .           
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                      .           
quality_of_democracy                                                    0.0817369925
qc19_label                                                              .           
                                                                                    
(Intercept)                                                            -0.0208858187
isocntry                                                                .           
country                                                                 .           
d8                                                                      .           
d10                                                                     0.1266777411
d11                                                                     .           
d25                                                                     .           
d60                                                                     0.0007861677
sd1_4                                                                  -0.1977579974
sd1_7                                                                   .           
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                   .           
qc2_6                                                                   .           
qc2_7                                                                   .           
qc4_7                                                                   .           
qc4_8                                                                   .           
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   0.0372560126
qc6_2                                                                   .           
qc6_10                                                                  0.0238160288
qc6_11                                                                  0.0265777706
qc7                                                                     .           
qc11_6                                                                 -0.0410942048
qc12_10                                                                 .           
qc12_11                                                                 0.1817664081
qc12_12                                                                 0.0391665366
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2707194879
qc15_2                                                                 -0.0587773185
qc15_3                                                                 -0.2692569338
qc17_3                                                                 -0.0203856748
qc17_4                                                                 -0.1966534976
qc17_5                                                                 -0.0982721565
qc18_1                                                                  .           
qc18_2                                                                  0.0124142852
qc18_3                                                                  0.0270718562
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            .           
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.0743379834
Conversion.practices.ban..gender.identity.                              0.4069595790
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.3565801452
Self.determination                                                      0.0583468429
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.2277481004
No.age.restriction                                                      .           
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                      .           
quality_of_democracy                                                    0.0875165764
qc19_label                                                              .           
                                                                                  
(Intercept)                                                            -0.06457071
isocntry                                                                .         
country                                                                 .         
d8                                                                      .         
d10                                                                     0.14208476
d11                                                                     .         
d25                                                                     .         
d60                                                                     0.01119236
sd1_4                                                                  -0.20309902
sd1_7                                                                   .         
sd1_8                                                                   .         
sd2_5                                                                   .         
sd3                                                                     .         
qc1_4                                                                   .         
qc2_4                                                                   .         
qc2_6                                                                   .         
qc2_7                                                                   .         
qc4_7                                                                   .         
qc4_8                                                                   .         
qc4_9                                                                   .         
qc4_10                                                                  .         
qc6_1                                                                   0.03949844
qc6_2                                                                   .         
qc6_10                                                                  0.02524402
qc6_11                                                                  0.02679681
qc7                                                                     .         
qc11_6                                                                 -0.04550411
qc12_10                                                                 .         
qc12_11                                                                 0.18149962
qc12_12                                                                 0.03912645
qc13_10                                                                 .         
qc13_11                                                                 .         
qc13_12                                                                 .         
qc15_1                                                                 -0.27125914
qc15_2                                                                 -0.05924361
qc15_3                                                                 -0.27010586
qc17_3                                                                 -0.02056089
qc17_4                                                                 -0.19787937
qc17_5                                                                 -0.09977388
qc18_1                                                                  .         
qc18_2                                                                  0.01135615
qc18_3                                                                  0.02886578
ranking                                                                 .         
Constitution..gender.identity.                                          .         
Employment..gender.identity.                                            .         
Goods...services..gender.identity.                                      .         
Education..gender.identity.                                             .         
Health..gender.identity.                                               -0.09616239
Conversion.practices.ban..gender.identity.                              0.42984768
Hate.crime.law..gender.identity.                                        .         
Hate.speech.law..gender.identity.                                       .         
Name.change                                                             0.35395843
Self.determination                                                      0.06307281
Non.binary.recognition                                                  .         
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .         
No.compulsory.medical.intervention.required                             0.22322975
No.age.restriction                                                      .         
No.laws.limiting.freedom.of.expression..national.local.                 .         
country_code                                                            .         
gender_gap_index                                                        .         
eu_unemployment_female                                                  .         
eu_unemployment_male                                                    .         
social_globalisation                                                    .         
religious_importance                                                    .         
fundamental_rights                                                      .         
gdp_per_capita_usd                                                      .         
quality_of_democracy                                                    0.09263802
qc19_label                                                              .         
                                                                                  
(Intercept)                                                            -0.10846080
isocntry                                                                .         
country                                                                 .         
d8                                                                      .         
d10                                                                     0.15632534
d11                                                                     .         
d25                                                                     .         
d60                                                                     0.02104394
sd1_4                                                                  -0.20750977
sd1_7                                                                   .         
sd1_8                                                                   .         
sd2_5                                                                   .         
sd3                                                                     .         
qc1_4                                                                   .         
qc2_4                                                                   .         
qc2_6                                                                   .         
qc2_7                                                                   .         
qc4_7                                                                   .         
qc4_8                                                                   0.01174839
qc4_9                                                                   .         
qc4_10                                                                  .         
qc6_1                                                                   0.04132072
qc6_2                                                                   .         
qc6_10                                                                  0.02701133
qc6_11                                                                  0.02702216
qc7                                                                     .         
qc11_6                                                                 -0.04931627
qc12_10                                                                 .         
qc12_11                                                                 0.18148475
qc12_12                                                                 0.03907755
qc13_10                                                                 .         
qc13_11                                                                 .         
qc13_12                                                                 .         
qc15_1                                                                 -0.27191662
qc15_2                                                                 -0.05966809
qc15_3                                                                 -0.27078302
qc17_3                                                                 -0.02051781
qc17_4                                                                 -0.19881987
qc17_5                                                                 -0.10117098
qc18_1                                                                  .         
qc18_2                                                                  0.01037143
qc18_3                                                                  0.03053104
ranking                                                                 .         
Constitution..gender.identity.                                          .         
Employment..gender.identity.                                            .         
Goods...services..gender.identity.                                      .         
Education..gender.identity.                                             .         
Health..gender.identity.                                               -0.11613166
Conversion.practices.ban..gender.identity.                              0.45074895
Hate.crime.law..gender.identity.                                        .         
Hate.speech.law..gender.identity.                                       .         
Name.change                                                             0.35153550
Self.determination                                                      0.06806805
Non.binary.recognition                                                  .         
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .         
No.compulsory.medical.intervention.required                             0.21824145
No.age.restriction                                                      .         
No.laws.limiting.freedom.of.expression..national.local.                 .         
country_code                                                            .         
gender_gap_index                                                        .         
eu_unemployment_female                                                  .         
eu_unemployment_male                                                    .         
social_globalisation                                                    .         
religious_importance                                                    .         
fundamental_rights                                                      .         
gdp_per_capita_usd                                                      .         
quality_of_democracy                                                    0.09732836
qc19_label                                                              .         
                                                                                  
(Intercept)                                                            -0.14740912
isocntry                                                                .         
country                                                                 .         
d8                                                                      .         
d10                                                                     0.16962377
d11                                                                     .         
d25                                                                     .         
d60                                                                     0.02909860
sd1_4                                                                  -0.21181293
sd1_7                                                                   .         
sd1_8                                                                   .         
sd2_5                                                                   .         
sd3                                                                     .         
qc1_4                                                                   .         
qc2_4                                                                   .         
qc2_6                                                                   .         
qc2_7                                                                  -0.03406740
qc4_7                                                                   .         
qc4_8                                                                   0.02318613
qc4_9                                                                   .         
qc4_10                                                                  .         
qc6_1                                                                   0.04291557
qc6_2                                                                   .         
qc6_10                                                                  0.02863161
qc6_11                                                                  0.02722718
qc7                                                                     .         
qc11_6                                                                 -0.05282885
qc12_10                                                                 .         
qc12_11                                                                 0.18147257
qc12_12                                                                 0.03912053
qc13_10                                                                 .         
qc13_11                                                                 .         
qc13_12                                                                 .         
qc15_1                                                                 -0.27269774
qc15_2                                                                 -0.05994888
qc15_3                                                                 -0.27134853
qc17_3                                                                 -0.02039498
qc17_4                                                                 -0.19933043
qc17_5                                                                 -0.10280926
qc18_1                                                                  .         
qc18_2                                                                  0.00939968
qc18_3                                                                  0.03215816
ranking                                                                 .         
Constitution..gender.identity.                                          0.02210351
Employment..gender.identity.                                            .         
Goods...services..gender.identity.                                      .         
Education..gender.identity.                                             .         
Health..gender.identity.                                               -0.13130103
Conversion.practices.ban..gender.identity.                              0.47253910
Hate.crime.law..gender.identity.                                        .         
Hate.speech.law..gender.identity.                                       .         
Name.change                                                             0.34830085
Self.determination                                                      0.07799501
Non.binary.recognition                                                  .         
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .         
No.compulsory.medical.intervention.required                             0.20456952
No.age.restriction                                                      .         
No.laws.limiting.freedom.of.expression..national.local.                 .         
country_code                                                            .         
gender_gap_index                                                        .         
eu_unemployment_female                                                  .         
eu_unemployment_male                                                    .         
social_globalisation                                                    .         
religious_importance                                                    .         
fundamental_rights                                                      .         
gdp_per_capita_usd                                                      .         
quality_of_democracy                                                    0.10246038
qc19_label                                                              .         
                                                                                   
(Intercept)                                                            -0.178946571
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.005131370
d10                                                                     0.181814788
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.036554317
sd1_4                                                                  -0.215998090
sd1_7                                                                  -0.001763509
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                  -0.090826267
qc4_7                                                                   .          
qc4_8                                                                   0.033703747
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.044244294
qc6_2                                                                   .          
qc6_10                                                                  0.030289521
qc6_11                                                                  0.027325985
qc7                                                                     .          
qc11_6                                                                 -0.055931343
qc12_10                                                                 .          
qc12_11                                                                 0.181417537
qc12_12                                                                 0.039184135
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.273550360
qc15_2                                                                 -0.060249190
qc15_3                                                                 -0.271952203
qc17_3                                                                 -0.020580693
qc17_4                                                                 -0.199681468
qc17_5                                                                 -0.104243362
qc18_1                                                                  .          
qc18_2                                                                  0.008558071
qc18_3                                                                  0.033653081
ranking                                                                 .          
Constitution..gender.identity.                                          0.046095107
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.143815842
Conversion.practices.ban..gender.identity.                              0.492568078
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.346151673
Self.determination                                                      0.090434363
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.189124506
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.107536661
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.187510982
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.010057384
d10                                                                     0.192901526
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.043550447
sd1_4                                                                  -0.217753727
sd1_7                                                                  -0.016566995
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                  -0.144726153
qc4_7                                                                   .          
qc4_8                                                                   0.043487669
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.045608901
qc6_2                                                                   .          
qc6_10                                                                  0.031402371
qc6_11                                                                  0.027409761
qc7                                                                     .          
qc11_6                                                                 -0.058749488
qc12_10                                                                 .          
qc12_11                                                                 0.181345639
qc12_12                                                                 0.039418521
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.274360881
qc15_2                                                                 -0.060548196
qc15_3                                                                 -0.272439445
qc17_3                                                                 -0.020897091
qc17_4                                                                 -0.199947868
qc17_5                                                                 -0.105381945
qc18_1                                                                  .          
qc18_2                                                                  0.007861149
qc18_3                                                                  0.034958638
ranking                                                                 .          
Constitution..gender.identity.                                          0.066572110
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.155408361
Conversion.practices.ban..gender.identity.                              0.510515685
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.344230326
Self.determination                                                      0.101108099
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.176064331
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                      .          
quality_of_democracy                                                    0.112222830
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.199528147
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.014476924
d10                                                                     0.201895336
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.050902905
sd1_4                                                                  -0.221673105
sd1_7                                                                  -0.030417517
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                  -0.195764944
qc4_7                                                                   .          
qc4_8                                                                   0.051982309
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.046913657
qc6_2                                                                   .          
qc6_10                                                                  0.033090917
qc6_11                                                                  0.027312740
qc7                                                                     .          
qc11_6                                                                 -0.061582721
qc12_10                                                                 .          
qc12_11                                                                 0.181855142
qc12_12                                                                 0.039211400
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.275033220
qc15_2                                                                 -0.061525947
qc15_3                                                                 -0.274179990
qc17_3                                                                 -0.021995959
qc17_4                                                                 -0.200004910
qc17_5                                                                 -0.105443406
qc18_1                                                                  .          
qc18_2                                                                  0.007489176
qc18_3                                                                  0.036056953
ranking                                                                 .          
Constitution..gender.identity.                                          0.085953949
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.167357425
Conversion.practices.ban..gender.identity.                              0.511836250
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.348234206
Self.determination                                                      0.120578171
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.180498532
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.018949337
quality_of_democracy                                                    0.120283789
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.210703735
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.018550231
d10                                                                     0.210008777
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.058097439
sd1_4                                                                  -0.226219127
sd1_7                                                                  -0.043468363
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                   .          
qc2_6                                                                   .          
qc2_7                                                                  -0.243095095
qc4_7                                                                   .          
qc4_8                                                                   0.059667655
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.048118426
qc6_2                                                                   .          
qc6_10                                                                  0.034701799
qc6_11                                                                  0.027283268
qc7                                                                     .          
qc11_6                                                                 -0.064382260
qc12_10                                                                 .          
qc12_11                                                                 0.182111275
qc12_12                                                                 0.039356587
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.276123363
qc15_2                                                                 -0.062273282
qc15_3                                                                 -0.275911159
qc17_3                                                                 -0.023575236
qc17_4                                                                 -0.199736683
qc17_5                                                                 -0.105218883
qc18_1                                                                  .          
qc18_2                                                                  0.006977107
qc18_3                                                                  0.037211668
ranking                                                                 .          
Constitution..gender.identity.                                          0.100715455
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.179221996
Conversion.practices.ban..gender.identity.                              0.507076434
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.352992732
Self.determination                                                      0.138482986
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.192704118
No.age.restriction                                                      .          
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.041257947
quality_of_democracy                                                    0.128484226
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.220924944
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.022208745
d10                                                                     0.217556170
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.064865830
sd1_4                                                                  -0.230636937
sd1_7                                                                  -0.055735148
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                  -0.004112768
qc2_6                                                                   .          
qc2_7                                                                  -0.285844146
qc4_7                                                                   .          
qc4_8                                                                   0.066746239
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.049245227
qc6_2                                                                   .          
qc6_10                                                                  0.036300861
qc6_11                                                                  0.027262821
qc7                                                                     .          
qc11_6                                                                 -0.067016203
qc12_10                                                                 .          
qc12_11                                                                 0.182137459
qc12_12                                                                 0.039754411
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.277317283
qc15_2                                                                 -0.062875391
qc15_3                                                                 -0.277417424
qc17_3                                                                 -0.025108570
qc17_4                                                                 -0.199364812
qc17_5                                                                 -0.105104098
qc18_1                                                                  .          
qc18_2                                                                  0.006326824
qc18_3                                                                  0.038419116
ranking                                                                 .          
Constitution..gender.identity.                                          0.110476443
Employment..gender.identity.                                            .          
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.190615101
Conversion.practices.ban..gender.identity.                              0.501889424
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.356617884
Self.determination                                                      0.154952826
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.206085399
No.age.restriction                                                      0.003127881
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.062266938
quality_of_democracy                                                    0.135812833
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.229699053
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.025274989
d10                                                                     0.224287838
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.071315258
sd1_4                                                                  -0.235099114
sd1_7                                                                  -0.067867143
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                   .          
qc2_4                                                                  -0.044244755
qc2_6                                                                   .          
qc2_7                                                                  -0.319020414
qc4_7                                                                   .          
qc4_8                                                                   0.073189444
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.050356148
qc6_2                                                                   .          
qc6_10                                                                  0.037761245
qc6_11                                                                  0.027193101
qc7                                                                     .          
qc11_6                                                                 -0.069496738
qc12_10                                                                 .          
qc12_11                                                                 0.182170374
qc12_12                                                                 0.040281446
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.278690546
qc15_2                                                                 -0.063343481
qc15_3                                                                 -0.278312028
qc17_3                                                                 -0.026366898
qc17_4                                                                 -0.199326061
qc17_5                                                                 -0.104964070
qc18_1                                                                  .          
qc18_2                                                                  0.005853109
qc18_3                                                                  0.039422802
ranking                                                                 .          
Constitution..gender.identity.                                          0.101097821
Employment..gender.identity.                                            0.006728509
Goods...services..gender.identity.                                      .          
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.207262423
Conversion.practices.ban..gender.identity.                              0.495160987
Hate.crime.law..gender.identity.                                        .          
Hate.speech.law..gender.identity.                                       .          
Name.change                                                             0.355451843
Self.determination                                                      0.171063516
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.224054642
No.age.restriction                                                      0.018997642
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    .          
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.082628099
quality_of_democracy                                                    0.142288893
qc19_label                                                              .          
                                                                                    
(Intercept)                                                            -0.2295253729
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0280825010
d10                                                                     0.2303336794
d11                                                                     .           
d25                                                                     .           
d60                                                                     0.0766915737
sd1_4                                                                  -0.2395237431
sd1_7                                                                  -0.0791642450
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                  -0.0809842787
qc2_6                                                                   .           
qc2_7                                                                  -0.3500131637
qc4_7                                                                   .           
qc4_8                                                                   0.0784208775
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   0.0513692424
qc6_2                                                                   .           
qc6_10                                                                  0.0388792622
qc6_11                                                                  0.0271363196
qc7                                                                    -0.0006297478
qc11_6                                                                 -0.0717880721
qc12_10                                                                 .           
qc12_11                                                                 0.1820347836
qc12_12                                                                 0.0410525435
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2800988901
qc15_2                                                                 -0.0636306503
qc15_3                                                                 -0.2786580282
qc17_3                                                                 -0.0273560201
qc17_4                                                                 -0.1990665259
qc17_5                                                                 -0.1049168677
qc18_1                                                                  .           
qc18_2                                                                  0.0055721601
qc18_3                                                                  0.0401874303
ranking                                                                 .           
Constitution..gender.identity.                                          0.0727113425
Employment..gender.identity.                                            0.0395001423
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.2428116527
Conversion.practices.ban..gender.identity.                              0.4941630794
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.3445877965
Self.determination                                                      0.1824231465
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.2358656268
No.age.restriction                                                      0.0359971597
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -0.0977707744
quality_of_democracy                                                    0.1515335561
qc19_label                                                              .           
                                                                                    
(Intercept)                                                            -0.2250768445
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0306534868
d10                                                                     0.2358294591
d11                                                                     .           
d25                                                                     .           
d60                                                                     0.0816451965
sd1_4                                                                  -0.2434980925
sd1_7                                                                  -0.0895196314
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                   .           
qc2_4                                                                  -0.1150555685
qc2_6                                                                   .           
qc2_7                                                                  -0.3783903825
qc4_7                                                                   .           
qc4_8                                                                   0.0829880033
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   0.0522887424
qc6_2                                                                   .           
qc6_10                                                                  0.0400016409
qc6_11                                                                  0.0270884062
qc7                                                                    -0.0019981360
qc11_6                                                                 -0.0739385128
qc12_10                                                                 .           
qc12_11                                                                 0.1820157938
qc12_12                                                                 0.0417726453
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2813600148
qc15_2                                                                 -0.0640040520
qc15_3                                                                 -0.2789259449
qc17_3                                                                 -0.0281780357
qc17_4                                                                 -0.1988704996
qc17_5                                                                 -0.1048523289
qc18_1                                                                  .           
qc18_2                                                                  0.0053470118
qc18_3                                                                  0.0408920676
ranking                                                                 .           
Constitution..gender.identity.                                          0.0497316261
Employment..gender.identity.                                            0.0693566164
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.2748751750
Conversion.practices.ban..gender.identity.                              0.4940520104
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.3346541657
Self.determination                                                      0.1946804377
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.2441898786
No.age.restriction                                                      0.0512663874
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    .           
religious_importance                                                    0.0005671553
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -0.1115211146
quality_of_democracy                                                    0.1603055108
qc19_label                                                              .           
                                                                                    
(Intercept)                                                            -0.2216443713
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0330347640
d10                                                                     0.2408907077
d11                                                                     .           
d25                                                                     .           
d60                                                                     0.0867694574
sd1_4                                                                  -0.2470384657
sd1_7                                                                  -0.0989095624
sd1_8                                                                   .           
sd2_5                                                                   .           
sd3                                                                     .           
qc1_4                                                                  -0.0009763571
qc2_4                                                                  -0.1467331591
qc2_6                                                                   .           
qc2_7                                                                  -0.4046896391
qc4_7                                                                   .           
qc4_8                                                                   0.0865984455
qc4_9                                                                   .           
qc4_10                                                                  .           
qc6_1                                                                   0.0531071841
qc6_2                                                                   .           
qc6_10                                                                  0.0408990509
qc6_11                                                                  0.0270701597
qc7                                                                    -0.0032056293
qc11_6                                                                 -0.0757777902
qc12_10                                                                 .           
qc12_11                                                                 0.1820087278
qc12_12                                                                 0.0424626808
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2826143687
qc15_2                                                                 -0.0645060942
qc15_3                                                                 -0.2792452637
qc17_3                                                                 -0.0288923162
qc17_4                                                                 -0.1985118560
qc17_5                                                                 -0.1048195391
qc18_1                                                                  .           
qc18_2                                                                  0.0051387674
qc18_3                                                                  0.0415841153
ranking                                                                 .           
Constitution..gender.identity.                                          0.0348647283
Employment..gender.identity.                                            0.0959086929
Goods...services..gender.identity.                                      .           
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.3019773633
Conversion.practices.ban..gender.identity.                              0.4935961131
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                       .           
Name.change                                                             0.3263455663
Self.determination                                                      0.2074591742
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .           
No.compulsory.medical.intervention.required                             0.2480942845
No.age.restriction                                                      0.0637868093
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    0.0003507023
religious_importance                                                    0.0034981750
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -0.1241126292
quality_of_democracy                                                    0.1691648405
qc19_label                                                              .           
                                                                                   
(Intercept)                                                            -0.205934530
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.034870234
d10                                                                     0.245281201
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.091394877
sd1_4                                                                  -0.250371486
sd1_7                                                                  -0.107309781
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                  -0.002343930
qc2_4                                                                  -0.176147767
qc2_6                                                                   .          
qc2_7                                                                  -0.431335843
qc4_7                                                                   .          
qc4_8                                                                   0.089749087
qc4_9                                                                   .          
qc4_10                                                                  .          
qc6_1                                                                   0.053520980
qc6_2                                                                   .          
qc6_10                                                                  0.041879643
qc6_11                                                                  0.027108651
qc7                                                                    -0.004068137
qc11_6                                                                 -0.077075165
qc12_10                                                                 .          
qc12_11                                                                 0.181556051
qc12_12                                                                 0.043209722
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.284148360
qc15_2                                                                 -0.065720922
qc15_3                                                                 -0.279565616
qc17_3                                                                 -0.029318742
qc17_4                                                                 -0.197840441
qc17_5                                                                 -0.105264256
qc18_1                                                                  .          
qc18_2                                                                  0.005109509
qc18_3                                                                  0.042154057
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            0.137571095
Goods...services..gender.identity.                                     -0.008948184
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.341113752
Conversion.practices.ban..gender.identity.                              0.496245868
Hate.crime.law..gender.identity.                                       -0.005922143
Hate.speech.law..gender.identity.                                      -0.002102912
Name.change                                                             0.310860964
Self.determination                                                      0.228319182
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  .          
No.compulsory.medical.intervention.required                             0.246440238
No.age.restriction                                                      0.075379555
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    0.020508250
religious_importance                                                    0.003682555
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.145311375
quality_of_democracy                                                    0.172526582
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.174925069
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.036258636
d10                                                                     0.248596381
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.095455970
sd1_4                                                                  -0.253786967
sd1_7                                                                  -0.115170911
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                  -0.004449746
qc2_4                                                                  -0.201836211
qc2_6                                                                   .          
qc2_7                                                                  -0.452674095
qc4_7                                                                   .          
qc4_8                                                                   0.094465695
qc4_9                                                                   .          
qc4_10                                                                 -0.002248446
qc6_1                                                                   0.053574406
qc6_2                                                                   .          
qc6_10                                                                  0.042374410
qc6_11                                                                  0.027181889
qc7                                                                    -0.004885509
qc11_6                                                                 -0.078246855
qc12_10                                                                 .          
qc12_11                                                                 0.181320634
qc12_12                                                                 0.043460768
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.286002484
qc15_2                                                                 -0.066678771
qc15_3                                                                 -0.280712131
qc17_3                                                                 -0.029808426
qc17_4                                                                 -0.197092200
qc17_5                                                                 -0.106076162
qc18_1                                                                  .          
qc18_2                                                                  0.005294148
qc18_3                                                                  0.042571408
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            0.191940641
Goods...services..gender.identity.                                     -0.071456330
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.333000674
Conversion.practices.ban..gender.identity.                              0.499056238
Hate.crime.law..gender.identity.                                       -0.014070630
Hate.speech.law..gender.identity.                                      -0.022432608
Name.change                                                             0.289137304
Self.determination                                                      0.246399839
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.018462009
No.compulsory.medical.intervention.required                             0.234184627
No.age.restriction                                                      0.080194421
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    0.047755427
religious_importance                                                    0.003584846
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.167052807
quality_of_democracy                                                    0.173707711
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.145954421
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.037585800
d10                                                                     0.251648137
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.099580811
sd1_4                                                                  -0.257077836
sd1_7                                                                  -0.122272012
sd1_8                                                                   .          
sd2_5                                                                   .          
sd3                                                                     .          
qc1_4                                                                  -0.006228597
qc2_4                                                                  -0.224711789
qc2_6                                                                   .          
qc2_7                                                                  -0.469696341
qc4_7                                                                   .          
qc4_8                                                                   0.103499415
qc4_9                                                                   0.004274884
qc4_10                                                                 -0.017096467
qc6_1                                                                   0.053608093
qc6_2                                                                   .          
qc6_10                                                                  0.042763968
qc6_11                                                                  0.027238527
qc7                                                                    -0.005667746
qc11_6                                                                 -0.079431083
qc12_10                                                                 .          
qc12_11                                                                 0.181324398
qc12_12                                                                 0.043362448
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.287797300
qc15_2                                                                 -0.067420837
qc15_3                                                                 -0.281727405
qc17_3                                                                 -0.030212707
qc17_4                                                                 -0.196602116
qc17_5                                                                 -0.106965375
qc18_1                                                                  .          
qc18_2                                                                  0.005528434
qc18_3                                                                  0.042913927
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            0.241312349
Goods...services..gender.identity.                                     -0.133902960
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.322958147
Conversion.practices.ban..gender.identity.                              0.496874857
Hate.crime.law..gender.identity.                                       -0.018287837
Hate.speech.law..gender.identity.                                      -0.043573177
Name.change                                                             0.268642383
Self.determination                                                      0.254863573
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.048642543
No.compulsory.medical.intervention.required                             0.222028751
No.age.restriction                                                      0.087902987
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                        .          
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    0.073961971
religious_importance                                                    0.002111381
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.188411797
quality_of_democracy                                                    0.173868091
qc19_label                                                              .          
                                                                                    
(Intercept)                                                            -0.1198482170
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0388117782
d10                                                                     0.2544628512
d11                                                                     .           
d25                                                                     .           
d60                                                                     0.1033560348
sd1_4                                                                  -0.2601354021
sd1_7                                                                  -0.1287817385
sd1_8                                                                   .           
sd2_5                                                                   0.0011764915
sd3                                                                     .           
qc1_4                                                                  -0.0078253989
qc2_4                                                                  -0.2461060980
qc2_6                                                                   .           
qc2_7                                                                  -0.4855074550
qc4_7                                                                   .           
qc4_8                                                                   0.1117029732
qc4_9                                                                   0.0085913611
qc4_10                                                                 -0.0308305042
qc6_1                                                                   0.0536498613
qc6_2                                                                   .           
qc6_10                                                                  0.0431093553
qc6_11                                                                  0.0272991135
qc7                                                                    -0.0063884370
qc11_6                                                                 -0.0805521029
qc12_10                                                                 .           
qc12_11                                                                 0.1813381581
qc12_12                                                                 0.0433051092
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2894890224
qc15_2                                                                 -0.0680997971
qc15_3                                                                 -0.2826558119
qc17_3                                                                 -0.0305918511
qc17_4                                                                 -0.1961509623
qc17_5                                                                 -0.1077969971
qc18_1                                                                  .           
qc18_2                                                                  0.0057371673
qc18_3                                                                  0.0432317235
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            0.2862879563
Goods...services..gender.identity.                                     -0.1913317737
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.3138024813
Conversion.practices.ban..gender.identity.                              0.4940951838
Hate.crime.law..gender.identity.                                       -0.0208671959
Hate.speech.law..gender.identity.                                      -0.0637615841
Name.change                                                             0.2503429163
Self.determination                                                      0.2627515960
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.0766846517
No.compulsory.medical.intervention.required                             0.2110401298
No.age.restriction                                                      0.0951556989
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                        .           
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    0.0981463177
religious_importance                                                    0.0006917819
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -0.2083395675
quality_of_democracy                                                    0.1738423120
qc19_label                                                              .           
                                                                                    
(Intercept)                                                            -0.0996383192
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0399873566
d10                                                                     0.2571223325
d11                                                                     .           
d25                                                                     .           
d60                                                                     0.1071311783
sd1_4                                                                  -0.2631184660
sd1_7                                                                  -0.1339382509
sd1_8                                                                   .           
sd2_5                                                                   0.0193706430
sd3                                                                     .           
qc1_4                                                                  -0.0091948769
qc2_4                                                                  -0.2742967534
qc2_6                                                                   0.0169200178
qc2_7                                                                  -0.5040388921
qc4_7                                                                   .           
qc4_8                                                                   0.1193014092
qc4_9                                                                   0.0125050507
qc4_10                                                                 -0.0434594416
qc6_1                                                                   0.0538026093
qc6_2                                                                   .           
qc6_10                                                                  0.0433421088
qc6_11                                                                  0.0273424845
qc7                                                                    -0.0070588934
qc11_6                                                                 -0.0815131388
qc12_10                                                                 .           
qc12_11                                                                 0.1813673016
qc12_12                                                                 0.0434453893
qc13_10                                                                 .           
qc13_11                                                                 .           
qc13_12                                                                 .           
qc15_1                                                                 -0.2910056268
qc15_2                                                                 -0.0688583502
qc15_3                                                                 -0.2834639862
qc17_3                                                                 -0.0308951541
qc17_4                                                                 -0.1956447777
qc17_5                                                                 -0.1086329298
qc18_1                                                                  .           
qc18_2                                                                  0.0058867104
qc18_3                                                                  0.0435553664
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            0.3280267875
Goods...services..gender.identity.                                     -0.2438334169
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.3055287538
Conversion.practices.ban..gender.identity.                              0.4921562993
Hate.crime.law..gender.identity.                                       -0.0230795186
Hate.speech.law..gender.identity.                                      -0.0822798364
Name.change                                                             0.2327903207
Self.determination                                                      0.2713298642
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.1002422248
No.compulsory.medical.intervention.required                             0.2014774008
No.age.restriction                                                      0.1011137572
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                            .           
gender_gap_index                                                       -0.0008423888
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    .           
social_globalisation                                                    0.1198965051
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -0.2263228229
quality_of_democracy                                                    0.1750446112
qc19_label                                                              .           
                                                                                   
(Intercept)                                                            -0.081599542
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.041287995
d10                                                                     0.259687377
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.111196986
sd1_4                                                                  -0.266152350
sd1_7                                                                  -0.138957848
sd1_8                                                                   .          
sd2_5                                                                   0.036099179
sd3                                                                     .          
qc1_4                                                                  -0.010448623
qc2_4                                                                  -0.301661559
qc2_6                                                                   0.043031876
qc2_7                                                                  -0.523148340
qc4_7                                                                   .          
qc4_8                                                                   0.126412178
qc4_9                                                                   0.016299280
qc4_10                                                                 -0.055338864
qc6_1                                                                   0.053981867
qc6_2                                                                   .          
qc6_10                                                                  0.043490473
qc6_11                                                                  0.027368621
qc7                                                                    -0.007715841
qc11_6                                                                 -0.082273803
qc12_10                                                                 .          
qc12_11                                                                 0.181365491
qc12_12                                                                 0.043685440
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.292312060
qc15_2                                                                 -0.069523154
qc15_3                                                                 -0.284359410
qc17_3                                                                 -0.031235492
qc17_4                                                                 -0.195259376
qc17_5                                                                 -0.109412391
qc18_1                                                                  .          
qc18_2                                                                  0.006067604
qc18_3                                                                  0.043896691
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            0.365234706
Goods...services..gender.identity.                                     -0.287952665
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.300231958
Conversion.practices.ban..gender.identity.                              0.490597549
Hate.crime.law..gender.identity.                                       -0.024869280
Hate.speech.law..gender.identity.                                      -0.097888101
Name.change                                                             0.214149707
Self.determination                                                      0.284193799
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.112386607
No.compulsory.medical.intervention.required                             0.199022829
No.age.restriction                                                      0.103321676
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                       -0.007389612
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    0.138198791
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.241546506
quality_of_democracy                                                    0.180944884
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.064599310
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.042482119
d10                                                                     0.262055065
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.114951537
sd1_4                                                                  -0.268959456
sd1_7                                                                  -0.143565920
sd1_8                                                                   .          
sd2_5                                                                   0.051484822
sd3                                                                     .          
qc1_4                                                                  -0.011606661
qc2_4                                                                  -0.326678789
qc2_6                                                                   0.067031906
qc2_7                                                                  -0.540701788
qc4_7                                                                   .          
qc4_8                                                                   0.132944687
qc4_9                                                                   0.019762985
qc4_10                                                                 -0.066232163
qc6_1                                                                   0.054141532
qc6_2                                                                   .          
qc6_10                                                                  0.043721110
qc6_11                                                                  0.027376207
qc7                                                                    -0.008311431
qc11_6                                                                 -0.082926775
qc12_10                                                                 .          
qc12_11                                                                 0.181368438
qc12_12                                                                 0.043901049
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.293516218
qc15_2                                                                 -0.070147075
qc15_3                                                                 -0.285195105
qc17_3                                                                 -0.031506752
qc17_4                                                                 -0.194911627
qc17_5                                                                 -0.110165562
qc18_1                                                                  .          
qc18_2                                                                  0.006224338
qc18_3                                                                  0.044218295
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            0.400570602
Goods...services..gender.identity.                                     -0.328580046
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.295884824
Conversion.practices.ban..gender.identity.                              0.490519544
Hate.crime.law..gender.identity.                                       -0.028101418
Hate.speech.law..gender.identity.                                      -0.110901573
Name.change                                                             0.196115792
Self.determination                                                      0.296208891
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.123007216
No.compulsory.medical.intervention.required                             0.196186084
No.age.restriction                                                      0.105296892
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                       -0.013660806
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    0.154793097
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.255049248
quality_of_democracy                                                    0.186909718
qc19_label                                                              .          
                                                                                   
(Intercept)                                                            -0.048922426
isocntry                                                                .          
country                                                                 .          
d8                                                                     -0.043575035
d10                                                                     0.264228658
d11                                                                     .          
d25                                                                     .          
d60                                                                     0.118406394
sd1_4                                                                  -0.271544453
sd1_7                                                                  -0.147797032
sd1_8                                                                   .          
sd2_5                                                                   0.065626535
sd3                                                                     .          
qc1_4                                                                  -0.012662057
qc2_4                                                                  -0.349598119
qc2_6                                                                   0.089039233
qc2_7                                                                  -0.556864538
qc4_7                                                                   .          
qc4_8                                                                   0.138932531
qc4_9                                                                   0.022927127
qc4_10                                                                 -0.076207310
qc6_1                                                                   0.054288255
qc6_2                                                                   .          
qc6_10                                                                  0.043931680
qc6_11                                                                  0.027384627
qc7                                                                    -0.008854861
qc11_6                                                                 -0.083517872
qc12_10                                                                 .          
qc12_11                                                                 0.181388210
qc12_12                                                                 0.044096086
qc13_10                                                                 .          
qc13_11                                                                 .          
qc13_12                                                                 .          
qc15_1                                                                 -0.294629357
qc15_2                                                                 -0.070721997
qc15_3                                                                 -0.285973677
qc17_3                                                                 -0.031754555
qc17_4                                                                 -0.194602828
qc17_5                                                                 -0.110863527
qc18_1                                                                  .          
qc18_2                                                                  0.006371259
qc18_3                                                                  0.044511318
ranking                                                                 .          
Constitution..gender.identity.                                          .          
Employment..gender.identity.                                            0.433369571
Goods...services..gender.identity.                                     -0.365828342
Education..gender.identity.                                             .          
Health..gender.identity.                                               -0.292164380
Conversion.practices.ban..gender.identity.                              0.490910043
Hate.crime.law..gender.identity.                                       -0.031544990
Hate.speech.law..gender.identity.                                      -0.122439515
Name.change                                                             0.179332993
Self.determination                                                      0.307227621
Non.binary.recognition                                                  .          
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.132813500
No.compulsory.medical.intervention.required                             0.193233847
No.age.restriction                                                      0.107184111
No.laws.limiting.freedom.of.expression..national.local.                 .          
country_code                                                            .          
gender_gap_index                                                       -0.019435009
eu_unemployment_female                                                  .          
eu_unemployment_male                                                    .          
social_globalisation                                                    0.169972438
religious_importance                                                    .          
fundamental_rights                                                      .          
gdp_per_capita_usd                                                     -0.267308447
quality_of_democracy                                                    0.192504150
qc19_label                                                              .          
                                                                                    
(Intercept)                                                            -3.033634e-02
isocntry                                                                .           
country                                                                 .           
d8                                                                     -4.448026e-02
d10                                                                     2.661757e-01
d11                                                                     .           
d25                                                                     .           
d60                                                                     1.221090e-01
sd1_4                                                                  -2.740048e-01
sd1_7                                                                  -1.514721e-01
sd1_8                                                                   .           
sd2_5                                                                   7.872565e-02
sd3                                                                     .           
qc1_4                                                                  -1.352818e-02
qc2_4                                                                  -3.708711e-01
qc2_6                                                                   1.094056e-01
qc2_7                                                                  -5.724534e-01
qc4_7                                                                   .           
qc4_8                                                                   1.444311e-01
qc4_9                                                                   2.577498e-02
qc4_10                                                                 -8.532751e-02
qc6_1                                                                   5.437485e-02
qc6_2                                                                   .           
qc6_10                                                                  4.418327e-02
qc6_11                                                                  2.736056e-02
qc7                                                                    -9.357324e-03
qc11_6                                                                 -8.406387e-02
qc12_10                                                                 .           
qc12_11                                                                 1.814503e-01
qc12_12                                                                 4.430530e-02
qc13_10                                                                 .           
qc13_11                                                                 1.780804e-04
qc13_12                                                                 .           
qc15_1                                                                 -2.955304e-01
qc15_2                                                                 -7.139084e-02
qc15_3                                                                 -2.869207e-01
qc17_3                                                                 -3.197411e-02
qc17_4                                                                 -1.942471e-01
qc17_5                                                                 -1.115144e-01
qc18_1                                                                  .           
qc18_2                                                                  6.478222e-03
qc18_3                                                                  4.480693e-02
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            4.719532e-01
Goods...services..gender.identity.                                     -4.094289e-01
Education..gender.identity.                                             .           
Health..gender.identity.                                               -2.850552e-01
Conversion.practices.ban..gender.identity.                              4.909895e-01
Hate.crime.law..gender.identity.                                       -3.240048e-02
Hate.speech.law..gender.identity.                                      -1.395879e-01
Name.change                                                             1.635378e-01
Self.determination                                                      3.186621e-01
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  1.427090e-01
No.compulsory.medical.intervention.required                             1.857175e-01
No.age.restriction                                                      1.089204e-01
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -1.153065e-05
gender_gap_index                                                       -2.441016e-02
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    3.480585e-03
social_globalisation                                                    1.849997e-01
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -2.773686e-01
quality_of_democracy                                                    1.958647e-01
qc19_label                                                              .           
                                                                                    
(Intercept)                                                            -5.555486e-03
isocntry                                                                .           
country                                                                 .           
d8                                                                     -4.506565e-02
d10                                                                     2.679930e-01
d11                                                                     .           
d25                                                                     .           
d60                                                                     1.261871e-01
sd1_4                                                                  -2.763781e-01
sd1_7                                                                  -1.542008e-01
sd1_8                                                                   .           
sd2_5                                                                   9.106475e-02
sd3                                                                     .           
qc1_4                                                                  -1.431609e-02
qc2_4                                                                  -3.908889e-01
qc2_6                                                                   1.283401e-01
qc2_7                                                                  -5.879739e-01
qc4_7                                                                   .           
qc4_8                                                                   1.495833e-01
qc4_9                                                                   2.821365e-02
qc4_10                                                                 -9.358415e-02
qc6_1                                                                   5.442462e-02
qc6_2                                                                   .           
qc6_10                                                                  4.381255e-02
qc6_11                                                                  2.723744e-02
qc7                                                                    -9.859389e-03
qc11_6                                                                 -8.466527e-02
qc12_10                                                                 .           
qc12_11                                                                 1.814665e-01
qc12_12                                                                 4.452637e-02
qc13_10                                                                 .           
qc13_11                                                                 1.824734e-03
qc13_12                                                                 .           
qc15_1                                                                 -2.963459e-01
qc15_2                                                                 -7.219597e-02
qc15_3                                                                 -2.880787e-01
qc17_3                                                                 -3.212835e-02
qc17_4                                                                 -1.937212e-01
qc17_5                                                                 -1.120511e-01
qc18_1                                                                  .           
qc18_2                                                                  6.488272e-03
qc18_3                                                                  4.510981e-02
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            5.301066e-01
Goods...services..gender.identity.                                     -4.744537e-01
Education..gender.identity.                                             .           
Health..gender.identity.                                               -2.682878e-01
Conversion.practices.ban..gender.identity.                              4.899927e-01
Hate.crime.law..gender.identity.                                       -2.224990e-02
Hate.speech.law..gender.identity.                                      -1.762811e-01
Name.change                                                             1.479937e-01
Self.determination                                                      3.358002e-01
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  1.484441e-01
No.compulsory.medical.intervention.required                             1.691119e-01
No.age.restriction                                                      1.083481e-01
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -4.123371e-05
gender_gap_index                                                       -2.911452e-02
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    1.531449e-02
social_globalisation                                                    2.022473e-01
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -2.832702e-01
quality_of_democracy                                                    1.946751e-01
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             1.635718e-02
isocntry                                                                .           
country                                                                 .           
d8                                                                     -4.562781e-02
d10                                                                     2.696849e-01
d11                                                                     .           
d25                                                                     .           
d60                                                                     1.298627e-01
sd1_4                                                                  -2.785918e-01
sd1_7                                                                  -1.567600e-01
sd1_8                                                                   .           
sd2_5                                                                   1.023397e-01
sd3                                                                     .           
qc1_4                                                                  -1.504173e-02
qc2_4                                                                  -4.092663e-01
qc2_6                                                                   1.455960e-01
qc2_7                                                                  -6.022304e-01
qc4_7                                                                   .           
qc4_8                                                                   1.542918e-01
qc4_9                                                                   3.048426e-02
qc4_10                                                                 -1.011228e-01
qc6_1                                                                   5.448380e-02
qc6_2                                                                   .           
qc6_10                                                                  4.343796e-02
qc6_11                                                                  2.714736e-02
qc7                                                                    -1.033094e-02
qc11_6                                                                 -8.528335e-02
qc12_10                                                                 .           
qc12_11                                                                 1.814448e-01
qc12_12                                                                 4.482117e-02
qc13_10                                                                 .           
qc13_11                                                                 3.282757e-03
qc13_12                                                                 .           
qc15_1                                                                 -2.971122e-01
qc15_2                                                                 -7.289683e-02
qc15_3                                                                 -2.891027e-01
qc17_3                                                                 -3.227789e-02
qc17_4                                                                 -1.932504e-01
qc17_5                                                                 -1.125356e-01
qc18_1                                                                  .           
qc18_2                                                                  6.479075e-03
qc18_3                                                                  4.540179e-02
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            5.813942e-01
Goods...services..gender.identity.                                     -5.326778e-01
Education..gender.identity.                                             .           
Health..gender.identity.                                               -2.530986e-01
Conversion.practices.ban..gender.identity.                              4.875435e-01
Hate.crime.law..gender.identity.                                       -1.112961e-02
Hate.speech.law..gender.identity.                                      -2.106230e-01
Name.change                                                             1.349097e-01
Self.determination                                                      3.516695e-01
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  1.531002e-01
No.compulsory.medical.intervention.required                             1.554718e-01
No.age.restriction                                                      1.076982e-01
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -6.787368e-05
gender_gap_index                                                       -3.344895e-02
eu_unemployment_female                                                  .           
eu_unemployment_male                                                    2.600061e-02
social_globalisation                                                    2.178458e-01
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -2.891565e-01
quality_of_democracy                                                    1.934413e-01
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             2.911901e-02
isocntry                                                                .           
country                                                                 .           
d8                                                                     -4.617956e-02
d10                                                                     2.703369e-01
d11                                                                     .           
d25                                                                     .           
d60                                                                     1.317199e-01
sd1_4                                                                  -2.803536e-01
sd1_7                                                                  -1.592601e-01
sd1_8                                                                   .           
sd2_5                                                                   1.128463e-01
sd3                                                                     .           
qc1_4                                                                  -1.622782e-02
qc2_4                                                                  -4.266001e-01
qc2_6                                                                   1.608766e-01
qc2_7                                                                  -6.139248e-01
qc4_7                                                                   .           
qc4_8                                                                   1.587795e-01
qc4_9                                                                   3.238273e-02
qc4_10                                                                 -1.066174e-01
qc6_1                                                                   5.464346e-02
qc6_2                                                                   .           
qc6_10                                                                  4.334243e-02
qc6_11                                                                  2.701302e-02
qc7                                                                    -1.071743e-02
qc11_6                                                                 -8.539476e-02
qc12_10                                                                 .           
qc12_11                                                                 1.813842e-01
qc12_12                                                                 4.458491e-02
qc13_10                                                                 .           
qc13_11                                                                 4.535015e-03
qc13_12                                                                 .           
qc15_1                                                                 -2.983030e-01
qc15_2                                                                 -7.362823e-02
qc15_3                                                                 -2.905808e-01
qc17_3                                                                 -3.250303e-02
qc17_4                                                                 -1.931563e-01
qc17_5                                                                 -1.127447e-01
qc18_1                                                                  .           
qc18_2                                                                  6.689924e-03
qc18_3                                                                  4.556864e-02
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            6.399407e-01
Goods...services..gender.identity.                                     -6.011945e-01
Education..gender.identity.                                             .           
Health..gender.identity.                                               -2.268670e-01
Conversion.practices.ban..gender.identity.                              4.785936e-01
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -2.464098e-01
Name.change                                                             1.258157e-01
Self.determination                                                      3.569265e-01
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  1.652605e-01
No.compulsory.medical.intervention.required                             1.527967e-01
No.age.restriction                                                      1.053131e-01
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -8.466882e-05
gender_gap_index                                                       -4.738292e-02
eu_unemployment_female                                                 -2.896984e-02
eu_unemployment_male                                                    6.368874e-02
social_globalisation                                                    2.385558e-01
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -2.963922e-01
quality_of_democracy                                                    1.906387e-01
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.0393742627
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0466903726
d10                                                                     0.2705476769
d11                                                                     .           
d25                                                                     .           
d60                                                                     0.1323871820
sd1_4                                                                  -0.2820715917
sd1_7                                                                  -0.1637528366
sd1_8                                                                   0.0050837416
sd2_5                                                                   0.1223565348
sd3                                                                     0.0002745084
qc1_4                                                                  -0.0177754933
qc2_4                                                                  -0.4421481823
qc2_6                                                                   0.1739670781
qc2_7                                                                  -0.6237903057
qc4_7                                                                   .           
qc4_8                                                                   0.1630340671
qc4_9                                                                   0.0339252554
qc4_10                                                                 -0.1109021703
qc6_1                                                                   0.0547840296
qc6_2                                                                   .           
qc6_10                                                                  0.0434010863
qc6_11                                                                  0.0268457738
qc7                                                                    -0.0110638518
qc11_6                                                                 -0.0854083060
qc12_10                                                                 .           
qc12_11                                                                 0.1812743598
qc12_12                                                                 0.0442552282
qc13_10                                                                 .           
qc13_11                                                                 0.0057159334
qc13_12                                                                 .           
qc15_1                                                                 -0.2996476337
qc15_2                                                                 -0.0740916352
qc15_3                                                                 -0.2924459701
qc17_3                                                                 -0.0327177076
qc17_4                                                                 -0.1931715472
qc17_5                                                                 -0.1128978179
qc18_1                                                                  .           
qc18_2                                                                  0.0069505503
qc18_3                                                                  0.0457225691
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            0.7027981830
Goods...services..gender.identity.                                     -0.6892436557
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.1791471831
Conversion.practices.ban..gender.identity.                              0.4675351391
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.2729478445
Name.change                                                             0.1185154270
Self.determination                                                      0.3616821164
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.1606527681
No.compulsory.medical.intervention.required                             0.1715146392
No.age.restriction                                                      0.1008489428
No.laws.limiting.freedom.of.expression..national.local.                -0.0085560794
country_code                                                           -0.0000980758
gender_gap_index                                                       -0.0680662499
eu_unemployment_female                                                 -0.0718816203
eu_unemployment_male                                                    0.1162484406
social_globalisation                                                    0.2617005365
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -0.3030411222
quality_of_democracy                                                    0.1880769744
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.0454900403
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0472304457
d10                                                                     0.2708575406
d11                                                                     0.0004857404
d25                                                                     .           
d60                                                                     0.1329212659
sd1_4                                                                  -0.2845093518
sd1_7                                                                  -0.1689127270
sd1_8                                                                   0.0124645341
sd2_5                                                                   0.1307681870
sd3                                                                     0.0005598768
qc1_4                                                                  -0.0192350222
qc2_4                                                                  -0.4563941888
qc2_6                                                                   0.1855832191
qc2_7                                                                  -0.6325521278
qc4_7                                                                   0.0006058539
qc4_8                                                                   0.1671353064
qc4_9                                                                   0.0349616342
qc4_10                                                                 -0.1148723077
qc6_1                                                                   0.0551026345
qc6_2                                                                   .           
qc6_10                                                                  0.0435488024
qc6_11                                                                  0.0266864700
qc7                                                                    -0.0114132301
qc11_6                                                                 -0.0855416458
qc12_10                                                                -0.0046122115
qc12_11                                                                 0.1829316152
qc12_12                                                                 0.0459206713
qc13_10                                                                 .           
qc13_11                                                                 0.0066492569
qc13_12                                                                 .           
qc15_1                                                                 -0.3010614673
qc15_2                                                                 -0.0746924758
qc15_3                                                                 -0.2940546744
qc17_3                                                                 -0.0330668159
qc17_4                                                                 -0.1930507672
qc17_5                                                                 -0.1130081682
qc18_1                                                                  .           
qc18_2                                                                  0.0071263708
qc18_3                                                                  0.0459813818
ranking                                                                 .           
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            0.7541133168
Goods...services..gender.identity.                                     -0.7633526129
Education..gender.identity.                                             .           
Health..gender.identity.                                               -0.1372702639
Conversion.practices.ban..gender.identity.                              0.4575757873
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.2951456434
Name.change                                                             0.1134466478
Self.determination                                                      0.3679639443
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.1531958773
No.compulsory.medical.intervention.required                             0.1911537192
No.age.restriction                                                      0.0966868508
No.laws.limiting.freedom.of.expression..national.local.                -0.0185516745
country_code                                                           -0.0001091606
gender_gap_index                                                       -0.0873471688
eu_unemployment_female                                                 -0.1094630208
eu_unemployment_male                                                    0.1620132690
social_globalisation                                                    0.2813953659
religious_importance                                                    .           
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -0.3093970921
quality_of_democracy                                                    0.1867469752
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.0785170553
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0472659437
d10                                                                     0.2707464757
d11                                                                     0.0034398443
d25                                                                     .           
d60                                                                     0.1320331498
sd1_4                                                                  -0.2873630240
sd1_7                                                                  -0.1735768080
sd1_8                                                                   0.0196140726
sd2_5                                                                   0.1382614122
sd3                                                                     0.0005852741
qc1_4                                                                  -0.0213576653
qc2_4                                                                  -0.4683666462
qc2_6                                                                   0.1943925450
qc2_7                                                                  -0.6404527099
qc4_7                                                                   0.0014201533
qc4_8                                                                   0.1714978339
qc4_9                                                                   0.0358938621
qc4_10                                                                 -0.1180788708
qc6_1                                                                   0.0553012366
qc6_2                                                                   .           
qc6_10                                                                  0.0438296841
qc6_11                                                                  0.0264887098
qc7                                                                    -0.0116984067
qc11_6                                                                 -0.0859011703
qc12_10                                                                -0.0099229706
qc12_11                                                                 0.1852864017
qc12_12                                                                 0.0473461871
qc13_10                                                                 .           
qc13_11                                                                 0.0077300550
qc13_12                                                                 .           
qc15_1                                                                 -0.3021016566
qc15_2                                                                 -0.0753257615
qc15_3                                                                 -0.2958918111
qc17_3                                                                 -0.0335912855
qc17_4                                                                 -0.1931731506
qc17_5                                                                 -0.1128546917
qc18_1                                                                  .           
qc18_2                                                                  0.0073519287
qc18_3                                                                  0.0463124016
ranking                                                                -0.0006516134
Constitution..gender.identity.                                          .           
Employment..gender.identity.                                            0.8419351752
Goods...services..gender.identity.                                     -0.9024838635
Education..gender.identity.                                            -0.0026260390
Health..gender.identity.                                               -0.0584850382
Conversion.practices.ban..gender.identity.                              0.4415243084
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.3175710533
Name.change                                                             0.0990294179
Self.determination                                                      0.3736510954
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.1501767823
No.compulsory.medical.intervention.required                             0.2279142052
No.age.restriction                                                      0.1002998656
No.laws.limiting.freedom.of.expression..national.local.                -0.0198175312
country_code                                                           -0.0001230820
gender_gap_index                                                       -0.1076762547
eu_unemployment_female                                                 -0.1510115683
eu_unemployment_male                                                    0.2202878388
social_globalisation                                                    0.3151974531
religious_importance                                                   -0.0101391988
fundamental_rights                                                      0.0009122265
gdp_per_capita_usd                                                     -0.3190862782
quality_of_democracy                                                    0.1771532426
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.1267144253
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0475335669
d10                                                                     0.2704601731
d11                                                                     0.0064497505
d25                                                                     .           
d60                                                                     0.1308393686
sd1_4                                                                  -0.2907990866
sd1_7                                                                  -0.1793722083
sd1_8                                                                   0.0265093696
sd2_5                                                                   0.1441669505
sd3                                                                     0.0005513472
qc1_4                                                                  -0.0228231379
qc2_4                                                                  -0.4789758259
qc2_6                                                                   0.2036795267
qc2_7                                                                  -0.6469629839
qc4_7                                                                   0.0018830246
qc4_8                                                                   0.1760493895
qc4_9                                                                   0.0365468459
qc4_10                                                                 -0.1207977827
qc6_1                                                                   0.0556595579
qc6_2                                                                   .           
qc6_10                                                                  0.0444618637
qc6_11                                                                  0.0263456764
qc7                                                                    -0.0119096055
qc11_6                                                                 -0.0867494835
qc12_10                                                                -0.0148480883
qc12_11                                                                 0.1871144808
qc12_12                                                                 0.0489874982
qc13_10                                                                 .           
qc13_11                                                                 0.0086890103
qc13_12                                                                 .           
qc15_1                                                                 -0.3033059636
qc15_2                                                                 -0.0760054246
qc15_3                                                                 -0.2966693002
qc17_3                                                                 -0.0336464404
qc17_4                                                                 -0.1936974817
qc17_5                                                                 -0.1127612484
qc18_1                                                                  .           
qc18_2                                                                  0.0074987092
qc18_3                                                                  0.0465373380
ranking                                                                -0.0025192568
Constitution..gender.identity.                                         -0.0564628521
Employment..gender.identity.                                            0.9612833679
Goods...services..gender.identity.                                     -0.9926800757
Education..gender.identity.                                            -0.0648977509
Health..gender.identity.                                               -0.0056798043
Conversion.practices.ban..gender.identity.                              0.4373986836
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.3089431578
Name.change                                                             0.0624447225
Self.determination                                                      0.4013872964
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.1742869931
No.compulsory.medical.intervention.required                             0.2601790528
No.age.restriction                                                      0.1263515522
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -0.0001046194
gender_gap_index                                                       -0.1268775401
eu_unemployment_female                                                 -0.1858039397
eu_unemployment_male                                                    0.2651891220
social_globalisation                                                    0.3580878086
religious_importance                                                   -0.0232506838
fundamental_rights                                                      .           
gdp_per_capita_usd                                                     -0.3396298243
quality_of_democracy                                                    0.1780939096
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.1821295350
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0477104879
d10                                                                     0.2697028585
d11                                                                     0.0088739012
d25                                                                     0.0015930125
d60                                                                     0.1298007907
sd1_4                                                                  -0.2935550382
sd1_7                                                                  -0.1844714788
sd1_8                                                                   0.0327785744
sd2_5                                                                   0.1487959485
sd3                                                                     0.0005030794
qc1_4                                                                  -0.0237635900
qc2_4                                                                  -0.4888893400
qc2_6                                                                   0.2103444535
qc2_7                                                                  -0.6542586999
qc4_7                                                                   0.0022521069
qc4_8                                                                   0.1799967937
qc4_9                                                                   0.0367773065
qc4_10                                                                 -0.1234296647
qc6_1                                                                   0.0558690041
qc6_2                                                                   .           
qc6_10                                                                  0.0447443127
qc6_11                                                                  0.0262979697
qc7                                                                    -0.0120729527
qc11_6                                                                 -0.0873695149
qc12_10                                                                -0.0195177409
qc12_11                                                                 0.1892400165
qc12_12                                                                 0.0503211999
qc13_10                                                                 .           
qc13_11                                                                 0.0095709742
qc13_12                                                                 .           
qc15_1                                                                 -0.3042262800
qc15_2                                                                 -0.0765322825
qc15_3                                                                 -0.2977841398
qc17_3                                                                 -0.0341370344
qc17_4                                                                 -0.1945197569
qc17_5                                                                 -0.1121851575
qc18_1                                                                  .           
qc18_2                                                                  0.0079444346
qc18_3                                                                  0.0464952981
ranking                                                                -0.0040704722
Constitution..gender.identity.                                         -0.1424236554
Employment..gender.identity.                                            1.0681047998
Goods...services..gender.identity.                                     -1.0467040278
Education..gender.identity.                                            -0.1068824396
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.4387944100
Hate.crime.law..gender.identity.                                       -0.0010672948
Hate.speech.law..gender.identity.                                      -0.3069130824
Name.change                                                             0.0281346089
Self.determination                                                      0.4211429701
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.2031898563
No.compulsory.medical.intervention.required                             0.2853952648
No.age.restriction                                                      0.1564389379
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -0.0000921611
gender_gap_index                                                       -0.1437139250
eu_unemployment_female                                                 -0.2170197701
eu_unemployment_male                                                    0.3062083618
social_globalisation                                                    0.4002983305
religious_importance                                                   -0.0370285364
fundamental_rights                                                      0.0007004750
gdp_per_capita_usd                                                     -0.3591712825
quality_of_democracy                                                    0.1768450721
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             2.328008e-01
isocntry                                                                .           
country                                                                 .           
d8                                                                     -4.788084e-02
d10                                                                     2.689839e-01
d11                                                                     1.115262e-02
d25                                                                     3.635837e-03
d60                                                                     1.285738e-01
sd1_4                                                                  -2.962053e-01
sd1_7                                                                  -1.890207e-01
sd1_8                                                                   3.866018e-02
sd2_5                                                                   1.526629e-01
sd3                                                                     4.091569e-04
qc1_4                                                                  -2.464076e-02
qc2_4                                                                  -4.984367e-01
qc2_6                                                                   2.162556e-01
qc2_7                                                                  -6.617639e-01
qc4_7                                                                   2.575970e-03
qc4_8                                                                   1.836170e-01
qc4_9                                                                   3.697198e-02
qc4_10                                                                 -1.255650e-01
qc6_1                                                                   5.614972e-02
qc6_2                                                                  -3.684746e-04
qc6_10                                                                  4.546980e-02
qc6_11                                                                  2.635540e-02
qc7                                                                    -1.217576e-02
qc11_6                                                                 -8.786457e-02
qc12_10                                                                -2.375923e-02
qc12_11                                                                 1.910400e-01
qc12_12                                                                 5.164315e-02
qc13_10                                                                 .           
qc13_11                                                                 1.031023e-02
qc13_12                                                                 .           
qc15_1                                                                 -3.053289e-01
qc15_2                                                                 -7.705389e-02
qc15_3                                                                 -2.988526e-01
qc17_3                                                                 -3.465081e-02
qc17_4                                                                 -1.952882e-01
qc17_5                                                                 -1.117164e-01
qc18_1                                                                  .           
qc18_2                                                                  8.287226e-03
qc18_3                                                                  4.649422e-02
ranking                                                                -5.444924e-03
Constitution..gender.identity.                                         -2.263097e-01
Employment..gender.identity.                                            1.169073e+00
Goods...services..gender.identity.                                     -1.099149e+00
Education..gender.identity.                                            -1.371316e-01
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              4.394010e-01
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -3.125110e-01
Name.change                                                             .           
Self.determination                                                      4.294443e-01
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  2.355167e-01
No.compulsory.medical.intervention.required                             3.057654e-01
No.age.restriction                                                      1.825987e-01
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -8.536288e-05
gender_gap_index                                                       -1.591790e-01
eu_unemployment_female                                                 -2.483219e-01
eu_unemployment_male                                                    3.483794e-01
social_globalisation                                                    4.388085e-01
religious_importance                                                   -4.937978e-02
fundamental_rights                                                      7.451973e-03
gdp_per_capita_usd                                                     -3.755618e-01
quality_of_democracy                                                    1.692670e-01
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.2563381086
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0480051758
d10                                                                     0.2683392378
d11                                                                     0.0133181488
d25                                                                     0.0055674723
d60                                                                     0.1273226160
sd1_4                                                                  -0.2983843912
sd1_7                                                                  -0.1928359729
sd1_8                                                                   0.0438189704
sd2_5                                                                   0.1561577626
sd3                                                                     0.0002919802
qc1_4                                                                  -0.0252003583
qc2_4                                                                  -0.5080637167
qc2_6                                                                   0.2215549485
qc2_7                                                                  -0.6699282285
qc4_7                                                                   0.0025442186
qc4_8                                                                   0.1867579988
qc4_9                                                                   0.0371654367
qc4_10                                                                 -0.1269956776
qc6_1                                                                   0.0565501621
qc6_2                                                                  -0.0013405673
qc6_10                                                                  0.0465658822
qc6_11                                                                  0.0266244562
qc7                                                                    -0.0122177620
qc11_6                                                                 -0.0883470201
qc12_10                                                                -0.0278088593
qc12_11                                                                 0.1931099552
qc12_12                                                                 0.0527147635
qc13_10                                                                 .           
qc13_11                                                                 0.0105339431
qc13_12                                                                 .           
qc15_1                                                                 -0.3067922715
qc15_2                                                                 -0.0778931902
qc15_3                                                                 -0.2996949196
qc17_3                                                                 -0.0353356788
qc17_4                                                                 -0.1961561731
qc17_5                                                                 -0.1111247032
qc18_1                                                                  .           
qc18_2                                                                  0.0087117474
qc18_3                                                                  0.0463532793
ranking                                                                -0.0059116899
Constitution..gender.identity.                                         -0.3306857782
Employment..gender.identity.                                            1.2484814581
Goods...services..gender.identity.                                     -1.1779535324
Education..gender.identity.                                            -0.1322865196
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.4175307933
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.3294556162
Name.change                                                             .           
Self.determination                                                      0.4089594553
Non.binary.recognition                                                  .           
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.2421104129
No.compulsory.medical.intervention.required                             0.3545987204
No.age.restriction                                                      0.2011059236
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -0.0001005191
gender_gap_index                                                       -0.1690364346
eu_unemployment_female                                                 -0.2816412729
eu_unemployment_male                                                    0.3953540030
social_globalisation                                                    0.4748422356
religious_importance                                                   -0.0616414564
fundamental_rights                                                      0.0219996171
gdp_per_capita_usd                                                     -0.3926998013
quality_of_democracy                                                    0.1404175554
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.2876305899
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0478742224
d10                                                                     0.2679765612
d11                                                                     0.0154242084
d25                                                                     0.0071979962
d60                                                                     0.1263271176
sd1_4                                                                  -0.3005821875
sd1_7                                                                  -0.1963995371
sd1_8                                                                   0.0484572243
sd2_5                                                                   0.1596008865
sd3                                                                     0.0001686852
qc1_4                                                                  -0.0257657283
qc2_4                                                                  -0.5162938835
qc2_6                                                                   0.2270961503
qc2_7                                                                  -0.6765957053
qc4_7                                                                   0.0024594638
qc4_8                                                                   0.1897991516
qc4_9                                                                   0.0373751798
qc4_10                                                                 -0.1282885938
qc6_1                                                                   0.0569619507
qc6_2                                                                  -0.0022546488
qc6_10                                                                  0.0475731903
qc6_11                                                                  0.0268297931
qc7                                                                    -0.0122418182
qc11_6                                                                 -0.0890178452
qc12_10                                                                -0.0315055970
qc12_11                                                                 0.1949190026
qc12_12                                                                 0.0539154132
qc13_10                                                                 .           
qc13_11                                                                 0.0107242828
qc13_12                                                                 .           
qc15_1                                                                 -0.3081101306
qc15_2                                                                 -0.0788358241
qc15_3                                                                 -0.3000855537
qc17_3                                                                 -0.0356202153
qc17_4                                                                 -0.1968105131
qc17_5                                                                 -0.1109282880
qc18_1                                                                  .           
qc18_2                                                                  0.0091110544
qc18_3                                                                  0.0461760070
ranking                                                                -0.0063106585
Constitution..gender.identity.                                         -0.4414259319
Employment..gender.identity.                                            1.3314388875
Goods...services..gender.identity.                                     -1.2814418495
Education..gender.identity.                                            -0.1020792356
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.3899892960
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.3530340333
Name.change                                                             .           
Self.determination                                                      0.3798053701
Non.binary.recognition                                                  0.0195817909
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.2321433460
No.compulsory.medical.intervention.required                             0.4142755068
No.age.restriction                                                      0.2138941203
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -0.0001304927
gender_gap_index                                                       -0.1774856684
eu_unemployment_female                                                 -0.3106106495
eu_unemployment_male                                                    0.4450858721
social_globalisation                                                    0.5091308666
religious_importance                                                   -0.0731812246
fundamental_rights                                                      0.0451881591
gdp_per_capita_usd                                                     -0.4047666814
quality_of_democracy                                                    0.1015144103
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.3149182706
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0479517023
d10                                                                     0.2678897439
d11                                                                     0.0173249460
d25                                                                     0.0083718293
d60                                                                     0.1257958994
sd1_4                                                                  -0.3027873818
sd1_7                                                                  -0.1996922383
sd1_8                                                                   0.0525955127
sd2_5                                                                   0.1632289721
sd3                                                                     0.0001270248
qc1_4                                                                  -0.0265974435
qc2_4                                                                  -0.5232476883
qc2_6                                                                   0.2318821424
qc2_7                                                                  -0.6812482882
qc4_7                                                                   0.0026200216
qc4_8                                                                   0.1925830195
qc4_9                                                                   0.0376912864
qc4_10                                                                 -0.1298000721
qc6_1                                                                   0.0572984033
qc6_2                                                                  -0.0030527173
qc6_10                                                                  0.0487197671
qc6_11                                                                  0.0270294582
qc7                                                                    -0.0124132767
qc11_6                                                                 -0.0896881947
qc12_10                                                                -0.0341432703
qc12_11                                                                 0.1960510674
qc12_12                                                                 0.0550636460
qc13_10                                                                 .           
qc13_11                                                                 0.0122195274
qc13_12                                                                -0.0014234546
qc15_1                                                                 -0.3090360067
qc15_2                                                                 -0.0795280777
qc15_3                                                                 -0.3007192698
qc17_3                                                                 -0.0359162504
qc17_4                                                                 -0.1971338308
qc17_5                                                                 -0.1108547996
qc18_1                                                                  .           
qc18_2                                                                  0.0092338304
qc18_3                                                                  0.0463081321
ranking                                                                -0.0069098921
Constitution..gender.identity.                                         -0.4997425894
Employment..gender.identity.                                            1.3901660515
Goods...services..gender.identity.                                     -1.3410665862
Education..gender.identity.                                            -0.0908932165
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.3692678276
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.3624634869
Name.change                                                            -0.0031480585
Self.determination                                                      0.3733730322
Non.binary.recognition                                                  0.0528129241
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.2415550897
No.compulsory.medical.intervention.required                             0.4433556390
No.age.restriction                                                      0.2236670943
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -0.0001437031
gender_gap_index                                                       -0.1875679283
eu_unemployment_female                                                 -0.3343898628
eu_unemployment_male                                                    0.4820817228
social_globalisation                                                    0.5342722716
religious_importance                                                   -0.0813518630
fundamental_rights                                                      0.0545216005
gdp_per_capita_usd                                                     -0.4150908406
quality_of_democracy                                                    0.0836709773
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             4.029015e-01
isocntry                                                                .           
country                                                                 .           
d8                                                                     -4.726712e-02
d10                                                                     2.674692e-01
d11                                                                     2.005650e-02
d25                                                                     1.014975e-02
d60                                                                     1.249139e-01
sd1_4                                                                  -3.060932e-01
sd1_7                                                                  -2.030308e-01
sd1_8                                                                   5.612830e-02
sd2_5                                                                   1.658643e-01
sd3                                                                     1.739455e-05
qc1_4                                                                  -2.694136e-02
qc2_4                                                                  -5.299870e-01
qc2_6                                                                   2.369437e-01
qc2_7                                                                  -6.856065e-01
qc4_7                                                                   2.318742e-03
qc4_8                                                                   1.958066e-01
qc4_9                                                                   3.790960e-02
qc4_10                                                                 -1.309253e-01
qc6_1                                                                   5.777000e-02
qc6_2                                                                  -3.810196e-03
qc6_10                                                                  4.957767e-02
qc6_11                                                                  2.721268e-02
qc7                                                                    -1.240332e-02
qc11_6                                                                 -9.047470e-02
qc12_10                                                                -3.726796e-02
qc12_11                                                                 1.976159e-01
qc12_12                                                                 5.617383e-02
qc13_10                                                                -1.829110e-04
qc13_11                                                                 1.554919e-02
qc13_12                                                                -4.803980e-03
qc15_1                                                                 -3.104667e-01
qc15_2                                                                 -8.040974e-02
qc15_3                                                                 -3.007543e-01
qc17_3                                                                 -3.628691e-02
qc17_4                                                                 -1.978822e-01
qc17_5                                                                 -1.106380e-01
qc18_1                                                                  .           
qc18_2                                                                  9.684385e-03
qc18_3                                                                  4.622432e-02
ranking                                                                -7.692207e-03
Constitution..gender.identity.                                         -6.280873e-01
Employment..gender.identity.                                            1.534832e+00
Goods...services..gender.identity.                                     -1.529301e+00
Education..gender.identity.                                            -2.326972e-02
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              3.275581e-01
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -4.118651e-01
Name.change                                                            -3.574734e-02
Self.determination                                                      2.924948e-01
Non.binary.recognition                                                  1.330143e-01
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  2.937741e-01
No.compulsory.medical.intervention.required                             4.835265e-01
No.age.restriction                                                      2.407442e-01
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -2.026718e-04
gender_gap_index                                                       -1.963968e-01
eu_unemployment_female                                                 -3.651415e-01
eu_unemployment_male                                                    5.540141e-01
social_globalisation                                                    5.813026e-01
religious_importance                                                   -9.682463e-02
fundamental_rights                                                      1.150680e-01
gdp_per_capita_usd                                                     -4.237424e-01
quality_of_democracy                                                    1.063669e-02
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.4366029274
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0473681602
d10                                                                     0.2676084209
d11                                                                     0.0214204222
d25                                                                     0.0111879615
d60                                                                     0.1247984889
sd1_4                                                                  -0.3081399591
sd1_7                                                                  -0.2059972454
sd1_8                                                                   0.0597634218
sd2_5                                                                   0.1685261374
sd3                                                                     .           
qc1_4                                                                  -0.0273439553
qc2_4                                                                  -0.5355928507
qc2_6                                                                   0.2415513937
qc2_7                                                                  -0.6892251457
qc4_7                                                                   0.0026121830
qc4_8                                                                   0.1980683526
qc4_9                                                                   0.0380835015
qc4_10                                                                 -0.1326443890
qc6_1                                                                   0.0580809794
qc6_2                                                                  -0.0043680488
qc6_10                                                                  0.0503150935
qc6_11                                                                  0.0274544018
qc7                                                                    -0.0124930474
qc11_6                                                                 -0.0909004524
qc12_10                                                                -0.0394157533
qc12_11                                                                 0.1980376534
qc12_12                                                                 0.0576274316
qc13_10                                                                -0.0004022847
qc13_11                                                                 0.0189477800
qc13_12                                                                -0.0079374432
qc15_1                                                                 -0.3110211562
qc15_2                                                                 -0.0809979689
qc15_3                                                                 -0.3011203151
qc17_3                                                                 -0.0364851696
qc17_4                                                                 -0.1978171822
qc17_5                                                                 -0.1109375946
qc18_1                                                                  .           
qc18_2                                                                  0.0097840776
qc18_3                                                                  0.0463853756
ranking                                                                -0.0083702418
Constitution..gender.identity.                                         -0.6791190215
Employment..gender.identity.                                            1.5952924696
Goods...services..gender.identity.                                     -1.5724771613
Education..gender.identity.                                            -0.0287749135
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.3265495643
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.4196734031
Name.change                                                            -0.0575737579
Self.determination                                                      0.2875019061
Non.binary.recognition                                                  0.1424301958
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.3093787061
No.compulsory.medical.intervention.required                             0.4985131620
No.age.restriction                                                      0.2535072645
No.laws.limiting.freedom.of.expression..national.local.                 .           
country_code                                                           -0.0002062047
gender_gap_index                                                       -0.2049599050
eu_unemployment_female                                                 -0.3796624970
eu_unemployment_male                                                    0.5784486940
social_globalisation                                                    0.6007898566
religious_importance                                                   -0.1033600570
fundamental_rights                                                      0.1265469569
gdp_per_capita_usd                                                     -0.4297603096
quality_of_democracy                                                    0.0005739719
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.4669629064
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0475759458
d10                                                                     0.2676423622
d11                                                                     0.0228998355
d25                                                                     0.0120917330
d60                                                                     0.1246296144
sd1_4                                                                  -0.3099256297
sd1_7                                                                  -0.2089397784
sd1_8                                                                   0.0629219614
sd2_5                                                                   0.1713138328
sd3                                                                     .           
qc1_4                                                                  -0.0280183139
qc2_4                                                                  -0.5408590559
qc2_6                                                                   0.2468113670
qc2_7                                                                  -0.6921362270
qc4_7                                                                   0.0028013117
qc4_8                                                                   0.2003645067
qc4_9                                                                   0.0381627542
qc4_10                                                                 -0.1342045563
qc6_1                                                                   0.0582479881
qc6_2                                                                  -0.0048808526
qc6_10                                                                  0.0510882059
qc6_11                                                                  0.0276703934
qc7                                                                    -0.0125368808
qc11_6                                                                 -0.0911170048
qc12_10                                                                -0.0413117462
qc12_11                                                                 0.1987944980
qc12_12                                                                 0.0585264827
qc13_10                                                                -0.0005529465
qc13_11                                                                 0.0219179783
qc13_12                                                                -0.0106952492
qc15_1                                                                 -0.3115871448
qc15_2                                                                 -0.0815720159
qc15_3                                                                 -0.3015692517
qc17_3                                                                 -0.0365508368
qc17_4                                                                 -0.1981348342
qc17_5                                                                 -0.1108645404
qc18_1                                                                  .           
qc18_2                                                                  0.0100124618
qc18_3                                                                  0.0464642172
ranking                                                                -0.0092068521
Constitution..gender.identity.                                         -0.7332238231
Employment..gender.identity.                                            1.6684168414
Goods...services..gender.identity.                                     -1.6158738219
Education..gender.identity.                                            -0.0471328065
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.3253672551
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.4213377008
Name.change                                                            -0.0856739907
Self.determination                                                      0.2901858571
Non.binary.recognition                                                  0.1482901030
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.3260938322
No.compulsory.medical.intervention.required                             0.5146907776
No.age.restriction                                                      0.2682609810
No.laws.limiting.freedom.of.expression..national.local.                 0.0094820922
country_code                                                           -0.0002016703
gender_gap_index                                                       -0.2164313468
eu_unemployment_female                                                 -0.3985969814
eu_unemployment_male                                                    0.6044026696
social_globalisation                                                    0.6238529672
religious_importance                                                   -0.1109092976
fundamental_rights                                                      0.1304512953
gdp_per_capita_usd                                                     -0.4380114784
quality_of_democracy                                                    .           
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             4.928952e-01
isocntry                                                                .           
country                                                                 .           
d8                                                                     -4.748619e-02
d10                                                                     2.674800e-01
d11                                                                     2.475372e-02
d25                                                                     1.326236e-02
d60                                                                     1.244823e-01
sd1_4                                                                  -3.119282e-01
sd1_7                                                                  -2.116166e-01
sd1_8                                                                   6.607524e-02
sd2_5                                                                   1.735075e-01
sd3                                                                     .           
qc1_4                                                                  -2.860320e-02
qc2_4                                                                  -5.456574e-01
qc2_6                                                                   2.513125e-01
qc2_7                                                                  -6.951347e-01
qc4_7                                                                   2.745059e-03
qc4_8                                                                   2.027566e-01
qc4_9                                                                   3.801318e-02
qc4_10                                                                 -1.353201e-01
qc6_1                                                                   5.847480e-02
qc6_2                                                                  -5.362054e-03
qc6_10                                                                  5.181296e-02
qc6_11                                                                  2.783805e-02
qc7                                                                    -1.254427e-02
qc11_6                                                                 -9.142242e-02
qc12_10                                                                -4.313208e-02
qc12_11                                                                 1.995559e-01
qc12_12                                                                 5.928268e-02
qc13_10                                                                -6.814526e-04
qc13_11                                                                 2.471198e-02
qc13_12                                                                -1.335432e-02
qc15_1                                                                 -3.121011e-01
qc15_2                                                                 -8.247109e-02
qc15_3                                                                 -3.018430e-01
qc17_3                                                                 -3.662271e-02
qc17_4                                                                 -1.985041e-01
qc17_5                                                                 -1.107613e-01
qc18_1                                                                 -4.692509e-05
qc18_2                                                                  1.026673e-02
qc18_3                                                                  4.650085e-02
ranking                                                                -1.040247e-02
Constitution..gender.identity.                                         -7.983773e-01
Employment..gender.identity.                                            1.757718e+00
Goods...services..gender.identity.                                     -1.655237e+00
Education..gender.identity.                                            -8.720951e-02
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              3.262027e-01
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -4.162133e-01
Name.change                                                            -1.189570e-01
Self.determination                                                      3.057489e-01
Non.binary.recognition                                                  1.533835e-01
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  3.514774e-01
No.compulsory.medical.intervention.required                             5.261755e-01
No.age.restriction                                                      2.899239e-01
No.laws.limiting.freedom.of.expression..national.local.                 3.245516e-02
country_code                                                           -1.870896e-04
gender_gap_index                                                       -2.259553e-01
eu_unemployment_female                                                 -4.171716e-01
eu_unemployment_male                                                    6.289670e-01
social_globalisation                                                    6.539240e-01
religious_importance                                                   -1.209841e-01
fundamental_rights                                                      1.285987e-01
gdp_per_capita_usd                                                     -4.507346e-01
quality_of_democracy                                                    .           
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.5246532767
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0473720778
d10                                                                     0.2672878909
d11                                                                     0.0265256613
d25                                                                     0.0144378104
d60                                                                     0.1242907379
sd1_4                                                                  -0.3138032446
sd1_7                                                                  -0.2141413234
sd1_8                                                                   0.0690718306
sd2_5                                                                   0.1753130719
sd3                                                                     .           
qc1_4                                                                  -0.0290828352
qc2_4                                                                  -0.5500672822
qc2_6                                                                   0.2555993617
qc2_7                                                                  -0.6981724927
qc4_7                                                                   0.0026174918
qc4_8                                                                   0.2050432358
qc4_9                                                                   0.0378559367
qc4_10                                                                 -0.1363853628
qc6_1                                                                   0.0586953455
qc6_2                                                                  -0.0057852694
qc6_10                                                                  0.0525506248
qc6_11                                                                  0.0279647386
qc7                                                                    -0.0125379414
qc11_6                                                                 -0.0917866743
qc12_10                                                                -0.0448951511
qc12_11                                                                 0.2003342222
qc12_12                                                                 0.0599005401
qc13_10                                                                -0.0008075000
qc13_11                                                                 0.0273178526
qc13_12                                                                -0.0158232053
qc15_1                                                                 -0.3125488452
qc15_2                                                                 -0.0833147416
qc15_3                                                                 -0.3020952115
qc17_3                                                                 -0.0367654528
qc17_4                                                                 -0.1988740793
qc17_5                                                                 -0.1106185675
qc18_1                                                                 -0.0001697610
qc18_2                                                                  0.0105250457
qc18_3                                                                  0.0465297576
ranking                                                                -0.0118186855
Constitution..gender.identity.                                         -0.8548948198
Employment..gender.identity.                                            1.8502823080
Goods...services..gender.identity.                                     -1.6907695026
Education..gender.identity.                                            -0.1338704820
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.3287555323
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.4078410144
Name.change                                                            -0.1546373131
Self.determination                                                      0.3222552734
Non.binary.recognition                                                  0.1674418388
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.3946938118
No.compulsory.medical.intervention.required                             0.5224320910
No.age.restriction                                                      0.3137009181
No.laws.limiting.freedom.of.expression..national.local.                 0.0581781816
country_code                                                           -0.0001703122
gender_gap_index                                                       -0.2333310838
eu_unemployment_female                                                 -0.4320189674
eu_unemployment_male                                                    0.6497898709
social_globalisation                                                    0.6846939593
religious_importance                                                   -0.1310225809
fundamental_rights                                                      0.1277319997
gdp_per_capita_usd                                                     -0.4639820014
quality_of_democracy                                                    .           
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.5678796364
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0473310877
d10                                                                     0.2670255372
d11                                                                     0.0281974356
d25                                                                     0.0154791988
d60                                                                     0.1241521228
sd1_4                                                                  -0.3155219513
sd1_7                                                                  -0.2165352055
sd1_8                                                                   0.0718015160
sd2_5                                                                   0.1770660515
sd3                                                                     .           
qc1_4                                                                  -0.0295332739
qc2_4                                                                  -0.5540135481
qc2_6                                                                   0.2604397704
qc2_7                                                                  -0.7007586508
qc4_7                                                                   0.0024909707
qc4_8                                                                   0.2072282766
qc4_9                                                                   0.0376775299
qc4_10                                                                 -0.1375821102
qc6_1                                                                   0.0587830562
qc6_2                                                                  -0.0061438256
qc6_10                                                                  0.0531839089
qc6_11                                                                  0.0280857850
qc7                                                                    -0.0125041302
qc11_6                                                                 -0.0921191850
qc12_10                                                                -0.0466070770
qc12_11                                                                 0.2014881677
qc12_12                                                                 0.0600414993
qc13_10                                                                -0.0009022068
qc13_11                                                                 0.0298164144
qc13_12                                                                -0.0181147212
qc15_1                                                                 -0.3130464377
qc15_2                                                                 -0.0839620700
qc15_3                                                                 -0.3023846650
qc17_3                                                                 -0.0369010489
qc17_4                                                                 -0.1994012041
qc17_5                                                                 -0.1102359646
qc18_1                                                                 -0.0002821374
qc18_2                                                                  0.0109095875
qc18_3                                                                  0.0464439077
ranking                                                                -0.0135039669
Constitution..gender.identity.                                         -0.8960668997
Employment..gender.identity.                                            1.9551657289
Goods...services..gender.identity.                                     -1.7302670811
Education..gender.identity.                                            -0.1879998180
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.3314788817
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.3968069606
Name.change                                                            -0.1963134090
Self.determination                                                      0.3349657660
Non.binary.recognition                                                  0.2017090067
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.4729815924
No.compulsory.medical.intervention.required                             0.4897925940
No.age.restriction                                                      0.3399566173
No.laws.limiting.freedom.of.expression..national.local.                 0.0878260234
country_code                                                           -0.0001547104
gender_gap_index                                                       -0.2387755459
eu_unemployment_female                                                 -0.4429924615
eu_unemployment_male                                                    0.6677491883
social_globalisation                                                    0.7175460765
religious_importance                                                   -0.1413209202
fundamental_rights                                                      0.1295734690
gdp_per_capita_usd                                                     -0.4778618266
quality_of_democracy                                                    .           
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.6075978587
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0473630839
d10                                                                     0.2668706095
d11                                                                     0.0296418353
d25                                                                     0.0165359121
d60                                                                     0.1238578378
sd1_4                                                                  -0.3170678450
sd1_7                                                                  -0.2187462414
sd1_8                                                                   0.0744093511
sd2_5                                                                   0.1785209691
sd3                                                                     .           
qc1_4                                                                  -0.0298717570
qc2_4                                                                  -0.5576309944
qc2_6                                                                   0.2649904860
qc2_7                                                                  -0.7030138831
qc4_7                                                                   0.0023956298
qc4_8                                                                   0.2091589988
qc4_9                                                                   0.0376116295
qc4_10                                                                 -0.1386156912
qc6_1                                                                   0.0589155122
qc6_2                                                                  -0.0064736533
qc6_10                                                                  0.0538529527
qc6_11                                                                  0.0281766878
qc7                                                                    -0.0124822456
qc11_6                                                                 -0.0924807307
qc12_10                                                                -0.0481931474
qc12_11                                                                 0.2022586077
qc12_12                                                                 0.0603265187
qc13_10                                                                -0.0010106281
qc13_11                                                                 0.0321105694
qc13_12                                                                -0.0201497743
qc15_1                                                                 -0.3135416107
qc15_2                                                                 -0.0845375643
qc15_3                                                                 -0.3026405626
qc17_3                                                                 -0.0370179592
qc17_4                                                                 -0.1997274300
qc17_5                                                                 -0.1100591847
qc18_1                                                                 -0.0003752049
qc18_2                                                                  0.0111339492
qc18_3                                                                  0.0464429902
ranking                                                                -0.0151175575
Constitution..gender.identity.                                         -0.9205940356
Employment..gender.identity.                                            2.0512641916
Goods...services..gender.identity.                                     -1.7539306657
Education..gender.identity.                                            -0.2487666563
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.3377953909
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.3859262394
Name.change                                                            -0.2356595947
Self.determination                                                      0.3476293518
Non.binary.recognition                                                  0.2433350102
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.5674375855
No.compulsory.medical.intervention.required                             0.4363920272
No.age.restriction                                                      0.3643603136
No.laws.limiting.freedom.of.expression..national.local.                 0.1156838886
country_code                                                           -0.0001377755
gender_gap_index                                                       -0.2430173333
eu_unemployment_female                                                 -0.4516023072
eu_unemployment_male                                                    0.6823582265
social_globalisation                                                    0.7461902579
religious_importance                                                   -0.1501000896
fundamental_rights                                                      0.1326402859
gdp_per_capita_usd                                                     -0.4898690804
quality_of_democracy                                                    .           
qc19_label                                                              .           
                                                                                    
(Intercept)                                                             0.6077845721
isocntry                                                                .           
country                                                                 .           
d8                                                                     -0.0475287405
d10                                                                     0.2672419073
d11                                                                     0.0298349336
d25                                                                     0.0167864475
d60                                                                     0.1241704281
sd1_4                                                                  -0.3174645956
sd1_7                                                                  -0.2192863629
sd1_8                                                                   0.0757664457
sd2_5                                                                   0.1801153379
sd3                                                                     .           
qc1_4                                                                  -0.0300908241
qc2_4                                                                  -0.5603168560
qc2_6                                                                   0.2673395368
qc2_7                                                                  -0.7052862641
qc4_7                                                                   0.0027369092
qc4_8                                                                   0.2094346824
qc4_9                                                                   0.0377664217
qc4_10                                                                 -0.1394733609
qc6_1                                                                   0.0589670118
qc6_2                                                                  -0.0065651681
qc6_10                                                                  0.0542073676
qc6_11                                                                  0.0281875698
qc7                                                                    -0.0125579434
qc11_6                                                                 -0.0926255504
qc12_10                                                                -0.0485331287
qc12_11                                                                 0.2025763408
qc12_12                                                                 0.0603584771
qc13_10                                                                -0.0010939735
qc13_11                                                                 0.0324293301
qc13_12                                                                -0.0205181049
qc15_1                                                                 -0.3138132062
qc15_2                                                                 -0.0846871976
qc15_3                                                                 -0.3026584595
qc17_3                                                                 -0.0370592429
qc17_4                                                                 -0.1997243433
qc17_5                                                                 -0.1100638737
qc18_1                                                                 -0.0004546577
qc18_2                                                                  0.0111854170
qc18_3                                                                  0.0464546889
ranking                                                                -0.0151422734
Constitution..gender.identity.                                         -0.9207181277
Employment..gender.identity.                                            2.0525851511
Goods...services..gender.identity.                                     -1.7549252475
Education..gender.identity.                                            -0.2492723953
Health..gender.identity.                                                .           
Conversion.practices.ban..gender.identity.                              0.3386999978
Hate.crime.law..gender.identity.                                        .           
Hate.speech.law..gender.identity.                                      -0.3861985154
Name.change                                                            -0.2362744881
Self.determination                                                      0.3487083621
Non.binary.recognition                                                  0.2447667535
No..Gender.Identity.Disorder..diagnosis.psychological.opinion.required  0.5687871261
No.compulsory.medical.intervention.required                             0.4351031719
No.age.restriction                                                      0.3652341048
No.laws.limiting.freedom.of.expression..national.local.                 0.1166105695
country_code                                                           -0.0001388824
gender_gap_index                                                       -0.2432779704
eu_unemployment_female                                                 -0.4516402999
eu_unemployment_male                                                    0.6827656619
social_globalisation                                                    0.7466467306
religious_importance                                                   -0.1504892532
fundamental_rights                                                      0.1325084423
gdp_per_capita_usd                                                     -0.4903441573
quality_of_democracy                                                    .           
qc19_label                                                              .           

The LASSO model helps us pick the most important factors influencing opinions on gender identity change. It is like a filter that throws out the less useful factors, leaving us with a smaller, more focused list (by shrinking some coefficients to zero). The table shows how the importance of each factor changes as we tighten the filter. Factors that remain relevant even when the filter is tightest (like d10, d8, d60 and quality_of_democracy and then gdp_per_capita_usd and social_globalisation) are the most influential in shaping opinions. These factors are the best predictors and need to be tested for stability so this is why we keep them.

Predictive model

First we scale those variables that aren’t scaled yet, so we can compare coefficients:

vars_a_escalar <- c("sd1_4", "d10", "d60")

merged_data[vars_a_escalar] <- scale(merged_data[vars_a_escalar])
# Fitting the multilevel model with the selected variables
modelo_multinivel2 <- glmer(qc19 ~ sd1_4 + d10 + d8 + d60 + quality_of_democracy +
                            gdp_per_capita_usd + social_globalisation + (1 | isocntry), 
                           data = train_data, 
                           family = binomial(link = "logit"))


# See the summary of the model
summary(modelo_multinivel2)
Generalized linear mixed model fit by maximum likelihood (Laplace
  Approximation) [glmerMod]
 Family: binomial  ( logit )
Formula: 
qc19 ~ sd1_4 + d10 + d8 + d60 + quality_of_democracy + gdp_per_capita_usd +  
    social_globalisation + (1 | isocntry)
   Data: train_data

     AIC      BIC   logLik deviance df.resid 
 19194.3  19264.1  -9588.2  19176.3    17189 

Scaled residuals: 
    Min      1Q  Median      3Q     Max 
-4.0510 -0.7928  0.3830  0.6654  3.2251 

Random effects:
 Groups   Name        Variance Std.Dev.
 isocntry (Intercept) 0.5289   0.7272  
Number of obs: 17198, groups:  isocntry, 28

Fixed effects:
                     Estimate Std. Error z value Pr(>|z|)    
(Intercept)           1.11061    0.18335   6.057 1.38e-09 ***
sd1_4                -1.06267    0.04052 -26.228  < 2e-16 ***
d10                   0.36309    0.03579  10.145  < 2e-16 ***
d8                   -0.01774    0.01817  -0.976   0.3289    
d60                   0.18434    0.03081   5.984 2.18e-09 ***
quality_of_democracy  0.07207    0.08267   0.872   0.3833    
gdp_per_capita_usd    0.18390    0.08981   2.048   0.0406 *  
social_globalisation  0.02503    0.10084   0.248   0.8040    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Correlation of Fixed Effects:
            (Intr) sd1_4  d10    d8     d60    qlty__ gdp___
sd1_4       -0.371                                          
d10         -0.323  0.022                                   
d8          -0.009  0.060  0.000                            
d60         -0.449  0.002  0.040 -0.031                     
qlty_f_dmcr  0.026 -0.001  0.012 -0.002 -0.001              
gdp_pr_cpt_ -0.023  0.019  0.009 -0.009 -0.004 -0.084       
scl_glblstn -0.007  0.000 -0.006  0.002 -0.002 -0.408 -0.589

Before interpreting the coefficients, we check multicollinearity:

library(car)
Cargando paquete requerido: carData

Adjuntando el paquete: 'car'
The following object is masked from 'package:purrr':

    some
The following object is masked from 'package:dplyr':

    recode
vif(modelo_multinivel2)
               sd1_4                  d10                   d8 
            1.004706             1.002348             1.004736 
                 d60 quality_of_democracy   gdp_per_capita_usd 
            1.002677             1.489621             1.900194 
social_globalisation 
            2.263249 

These Variance Inflation Factor (VIF) values indicate the level of multicollinearity among the predictor variables in your model. A VIF of 1 suggests no multicollinearity, while values greater than 1 indicate increasing levels of correlation. Based on these results, quality_of_democracy has a VIF of 1.55, and gdp_per_capita_usd has a VIF of 2.38, suggesting that these two variables have moderate colinearity. Similarly, social_globalisation is the highest one, with 2.80, but it is still not extremely high. All the other variables are negligibly low, close to 1. There is no significant multicollinearity because the VIF values are less than 5, indicating that the independent variables are not highly correlated with each other. This implies that the coefficients of the model are stable and the estimates of the effects of each variable are reliable. So our results are solid.

Interpretation

To compare how the odds ratios change, we must exponentiate the coefficients in with exp():

exp(fixef(modelo_multinivel2))
         (Intercept)                sd1_4                  d10 
           3.0362169            0.3455312            1.4377679 
                  d8                  d60 quality_of_democracy 
           0.9824121            1.2024284            1.0747333 
  gdp_per_capita_usd social_globalisation 
           1.2018953            1.0253416 

We can plot it to see more clear which variables affect the dependent positively or negatively:

library(sjPlot)

plot_model(modelo_multinivel2, show.values = TRUE, value.offset = .3, title = "Coefficients and significance of the variables in the multilevel model")

This generalized linear mixed model (GLMM) predicts qc19 using a combination of individual and country-level predictors, while accounting for clustering within countries using a random intercept for isocntry.

Controlling all the variables, we can see the following in the significant variables:
People who do not have LGB friends are approximately 65% less likely to support transgender people compared to those who do not have gay friends. Being female rather than male increases the odds of supporting gender identity change by 43%. Furthermore, among those with higher incomes (who have less difficulty paying bills), the odds of supporting gender identity changes increase by 43%. Finally, a country’s GDP per capita increase in USD per unit increases the odds of supporting gender identity change measures by 20%. The quality of democracy and social globalization variables do not significantly influence the dependent variable.

We plot our results to make it more easy to visualize:

library(ggeffects)

gg.pred = ggpredict(modelo_multinivel2, terms = c("gdp_per_capita_usd", "d10", "d60"), ci_level=NA)
You are calculating adjusted predictions on the population-level (i.e.
  `type = "fixed"`) for a *generalized* linear mixed model.
  This may produce biased estimates due to Jensen's inequality. Consider
  setting `bias_correction = TRUE` to correct for this bias.
  See also the documentation of the `bias_correction` argument.
Data were 'prettified'. Consider using `terms="gdp_per_capita_usd
  [all]"` to get smooth plots.
plot(gg.pred) +
  labs(
    title = "Predicted Probabilities of Supporting Gender Identity Change",  
    subtitle = "Based on gender, difficulty paying bills and GDP",
    x = "GDP per capita (scaled)",  
    y = "Probability of Support" 
  ) +
  scale_color_manual(values = c("Man" = "blue", "Woman" = "red")) +
  theme_minimal() +
  theme(
    plot.title = element_text(size = 14, face = "bold", hjust = 0.5), 
    plot.subtitle = element_text(size = 12, hjust = 0.5, color = "gray25"), 
    axis.title.x = element_text(size = 12),  
    axis.title.y = element_text(size = 12), 
    axis.text.x = element_text(size = 10),  
    axis.text.y = element_text(size = 10),  
    legend.position = "right", 
    legend.title = element_text(size = 10),  
    legend.text = element_text(size = 10)  
  )
Scale for colour is already present.
Adding another scale for colour, which will replace the existing scale.

Here we can see what we’ve already interpreted: as the GDP per capita (USD) in a country increases, support for changing gender identity also increases. Furthermore we can see another pattern: men are less supportive than women. Finally, we see that the fewer difficulties there are in paying bills, the more support there is for this measure.

Similarly, we can see that as GDP increases, support for gender change measures increases.

Evaluate model

Predictions:

# Make predictions on the test set
predicciones <- predict(modelo_multinivel2, newdata = test_data, type = "response")


predicciones_clase <- ifelse(predicciones > 0.5, 1, 0)

Model evaluation - confusion matrix:

cm <- confusionMatrix(as.factor(predicciones_clase), as.factor(test_data$qc19))

# See the summary of confusion matrix
cm
Confusion Matrix and Statistics

          Reference
Prediction    0    1
         0 1003  512
         1  713 2097
                                          
               Accuracy : 0.7168          
                 95% CI : (0.7031, 0.7302)
    No Information Rate : 0.6032          
    P-Value [Acc > NIR] : < 2.2e-16       
                                          
                  Kappa : 0.3962          
                                          
 Mcnemar's Test P-Value : 1.102e-08       
                                          
            Sensitivity : 0.5845          
            Specificity : 0.8038          
         Pos Pred Value : 0.6620          
         Neg Pred Value : 0.7463          
             Prevalence : 0.3968          
         Detection Rate : 0.2319          
   Detection Prevalence : 0.3503          
      Balanced Accuracy : 0.6941          
                                          
       'Positive' Class : 0               
                                          
# Precision, Recall, y F1-Score
precision <- cm$byClass["Pos Pred Value"]  # Precision
recall <- cm$byClass["Sensitivity"]        # Recall
f1_score <- cm$byClass["F1"]               # F1-Score

# print the results
cat("Precision:", precision, "\n")
Precision: 0.6620462 
cat("Sensitivity:", recall, "\n")
Sensitivity: 0.5844988 
cat("F1-Score:", f1_score, "\n")
F1-Score: 0.6208604 

The model has an accuracy of 71%, correctly predicting support (1) or no support (0) 71% of the time. Its sensitivity is 59%, meaning it correctly identifies 59% of those who support gender identity change (1). The specificity is 80%, meaning it correctly identifies 80% of those who do not support it (0). Overall, the model is better at predicting non-supporters than supporters. Improving sensitivity could help the model more accurately predict those who support gender identity change. The F1-Score of 0.62 indicates a moderate balance between precision and recall, showing decent overall performance with room for improvement in identifying supporters.

Model evaluation - ROC curve:

library(pROC)
Type 'citation("pROC")' for a citation.

Adjuntando el paquete: 'pROC'
The following objects are masked from 'package:stats':

    cov, smooth, var
roc_curve <- roc(test_data$qc19, predicciones)
Setting levels: control = 0, case = 1
Setting direction: controls < cases
plot(roc_curve)

auc(roc_curve)
Area under the curve: 0.7734

The area under the curve of 0.7734 indicates that the model has good predictive ability. A value close to 0.5 means the model does not distinguish between classes (equivalent to chance), while a value close to 1 indicates excellent predictive ability.